From 2335cded53761024a2801b34330e8ddea842b380 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 10 Dec 2020 11:13:55 +0800 Subject: [PATCH] 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 --- src/script/run-cbt.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/script/run-cbt.sh b/src/script/run-cbt.sh index f238cac7d1fb8..116cc77f22f0e 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 <