]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/standalone/ceph-helpers.sh: provide argument to dirname 23112/head
authorNathan Cutler <ncutler@suse.com>
Fri, 20 Apr 2018 08:10:15 +0000 (10:10 +0200)
committerNathan Cutler <ncutler@suse.com>
Wed, 18 Jul 2018 11:39:28 +0000 (13:39 +0200)
Fixes: http://tracker.ceph.com/issues/23805
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit f03b9028f5cffd375bf3dc7442b142189246b878)

qa/standalone/ceph-helpers.sh

index b9dd86bf2030d1246ade886d417534f3623841b0..4c124b7f1181bbc9c7c656769cffda1709fd6af9 100755 (executable)
@@ -169,7 +169,7 @@ function teardown() {
       pattern=""
     fi
     # Local we start with core and teuthology ends with core
-    if ls $(dirname $pattern) | grep -q '^core\|core$' ; then
+    if ls $(dirname "$pattern") | grep -q '^core\|core$' ; then
         cores="yes"
         if [ -n "$LOCALRUN" ]; then
            mkdir /tmp/cores.$$ 2> /dev/null || true