]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
script/run-cbt.sh: drop bashism 38515/head
authorKefu Chai <kchai@redhat.com>
Thu, 10 Dec 2020 03:13:55 +0000 (11:13 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 10 Dec 2020 03:25:54 +0000 (11:25 +0800)
commit2335cded53761024a2801b34330e8ddea842b380
tree052e4b7908694c7a2ee1f2f03ab1650b178311db
parentbcebcea95f2ef20945e2a83ed9a05ce91c49f962
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 <kchai@redhat.com>
src/script/run-cbt.sh