]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
run-standalone.sh: Need double-quotes to handle | in core_pattern 26436/head
authorDavid Zafman <dzafman@redhat.com>
Fri, 15 Feb 2019 00:47:29 +0000 (16:47 -0800)
committerDavid Zafman <dzafman@redhat.com>
Fri, 15 Feb 2019 00:50:14 +0000 (16:50 -0800)
on all distributions

OpenSUSE does not automatically add the | back when setting
the corepattern.  I tested this on openSUSE Leap 15.0.

Fixes: http://tracker.ceph.com/issues/38325
Signed-off-by: David Zafman <dzafman@redhat.com>
qa/run-standalone.sh

index 6d0c0a9340a2ee48dc3dc0c432f84cec9e7ed611..4a7a00546c5971426d182623db6e41d5c99e15c7 100755 (executable)
@@ -38,7 +38,7 @@ fi
 
 function cleanup() {
     if [ -n "$precore" ]; then
-        sudo sysctl -w ${KERNCORE}=${precore}
+        sudo sysctl -w "${KERNCORE}=${precore}"
     fi
 }
 
@@ -81,7 +81,7 @@ precore="$(sysctl -n $KERNCORE)"
 if [ "$precore" = "$COREPATTERN" ]; then
     precore=""
 else
-    sudo sysctl -w ${KERNCORE}=${COREPATTERN}
+    sudo sysctl -w "${KERNCORE}=${COREPATTERN}"
 fi
 # Clean out any cores in core target directory (currently .)
 if ls $(dirname $(sysctl -n $KERNCORE)) | grep -q '^core\|core$' ; then