diff options
author | Daniel Hahler <git@thequod.de> | 2019-06-11 17:03:03 +0200 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2019-06-17 02:00:58 +0200 |
commit | 04d03b0cbc3345b9be4e05ce5fe0c3016ce166db (patch) | |
tree | 5e1684a4d4c7a9317f5e9bf750ab74d138cdabfc | |
parent | d32b92e2651abcb541f7cedceb2488bc411ea1ca (diff) | |
download | rneovim-04d03b0cbc3345b9be4e05ce5fe0c3016ce166db.tar.gz rneovim-04d03b0cbc3345b9be4e05ce5fe0c3016ce166db.tar.bz2 rneovim-04d03b0cbc3345b9be4e05ce5fe0c3016ce166db.zip |
ci/common/test.sh: fix some issues reported by shellcheck
-rw-r--r-- | ci/common/test.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ci/common/test.sh b/ci/common/test.sh index 18b5639885..0912c3965f 100644 --- a/ci/common/test.sh +++ b/ci/common/test.sh @@ -32,11 +32,12 @@ check_core_dumps() { shift fi local app="${1:-${BUILD_DIR}/bin/nvim}" + local cores if test "${TRAVIS_OS_NAME}" = osx ; then - local cores="$(find /cores/ -type f -print)" + cores="$(find /cores/ -type f -print)" local _sudo='sudo' else - local cores="$(find ./ -type f -name 'core.*' -print)" + cores="$(find ./ -type f -name 'core.*' -print)" local _sudo= fi @@ -94,7 +95,7 @@ run_unittests() {( fail 'unittests' F 'Unit tests failed' fi submit_coverage unittest - check_core_dumps "$(which luajit)" + check_core_dumps "$(command -v luajit)" exit_suite )} |