From: David Zafman Date: Fri, 15 Feb 2019 00:47:29 +0000 (-0800) Subject: run-standalone.sh: Need double-quotes to handle | in core_pattern X-Git-Tag: v14.1.1~160^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bc2df8c49b17248cc832deae75149d8e26d3f1e7;p=ceph.git run-standalone.sh: Need double-quotes to handle | in core_pattern 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 --- diff --git a/qa/run-standalone.sh b/qa/run-standalone.sh index 6d0c0a9340a2..4a7a00546c59 100755 --- a/qa/run-standalone.sh +++ b/qa/run-standalone.sh @@ -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