From f03b9028f5cffd375bf3dc7442b142189246b878 Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Fri, 20 Apr 2018 10:10:15 +0200 Subject: [PATCH] qa/standalone/ceph-helpers.sh: provide argument to dirname Fixes: http://tracker.ceph.com/issues/23805 Signed-off-by: Nathan Cutler --- qa/standalone/ceph-helpers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/standalone/ceph-helpers.sh b/qa/standalone/ceph-helpers.sh index 2164e5fcabb67..77622f9ec0ba3 100755 --- a/qa/standalone/ceph-helpers.sh +++ b/qa/standalone/ceph-helpers.sh @@ -158,7 +158,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 -- 2.39.5