From 8757f2cf2fe5dca77fe93100784a54bc702a0d54 Mon Sep 17 00:00:00 2001 From: David Zafman Date: Thu, 14 Feb 2019 16:47:29 -0800 Subject: [PATCH] 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 (cherry picked from commit bc2df8c49b17248cc832deae75149d8e26d3f1e7) --- qa/run-standalone.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/run-standalone.sh b/qa/run-standalone.sh index 788a866aa69..b7eb16afb8d 100755 --- a/qa/run-standalone.sh +++ b/qa/run-standalone.sh @@ -46,7 +46,7 @@ fi function cleanup() { if [ -n "$precore" ]; then - sudo sysctl -w ${KERNCORE}=${precore} + sudo sysctl -w "${KERNCORE}=${precore}" fi } @@ -87,7 +87,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 -- 2.47.3