From: Kefu Chai Date: Thu, 10 Dec 2020 03:13:55 +0000 (+0800) Subject: script/run-cbt.sh: drop bashism X-Git-Tag: v16.1.0~295^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F38515%2Fhead;p=ceph.git script/run-cbt.sh: drop bashism * "local" is not supported by POSIX shell, so drop it * assign "$*" to a non-array variable, see https://github.com/koalaman/shellcheck/wiki/SC2124 * fail early if "cd" fails, see https://github.com/koalaman/shellcheck/wiki/SC2164 * quote "$(...)" with quotes to avoid string split Signed-off-by: Kefu Chai --- diff --git a/src/script/run-cbt.sh b/src/script/run-cbt.sh index f238cac7d1fb..116cc77f22f0 100755 --- a/src/script/run-cbt.sh +++ b/src/script/run-cbt.sh @@ -1,7 +1,7 @@ #!/bin/sh usage() { - local prog_name=$1 + prog_name=$1 shift cat <