Build: Introduce shellcheck (#18081)

* Build: introduce shellcheck

Fixes #16198
This commit is contained in:
Oleg Gaidarenko
2019-07-23 13:12:33 +03:00
committed by GitHub
parent 87a794fe0a
commit 4b16cd6cc8
28 changed files with 161 additions and 156 deletions

View File

@@ -1,14 +1,7 @@
#!/bin/bash
function exit_if_fail {
command=$@
echo "Executing '$command'"
eval $command
rc=$?
if [ $rc -ne 0 ]; then
echo "'$command' returned $rc."
exit $rc
fi
}
# shellcheck source=./scripts/helpers/exit-if-fail.sh
source "$(dirname "$0")/helpers/exit-if-fail.sh"
echo "running redis and memcache tests"