qa/standalone/ceph-helpers.sh: provide argument to dirname

Fixes: http://tracker.ceph.com/issues/23805
Signed-off-by: Nathan Cutler <ncutler@suse.com>
This commit is contained in:
Nathan Cutler 2018-04-20 10:10:15 +02:00
parent a4778e9d62
commit f03b9028f5

View File

@ -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