projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sink.utils.dummy: remove unnecessary check in dummy_consume()
[babeltrace.git]
/
tools
/
shellcheck.sh
diff --git
a/tools/shellcheck.sh
b/tools/shellcheck.sh
index 6cf23b3b1e7f485da8483eaf91e1e43051ca6f26..b03023e846004acf691dfbd956eeb9c306a5db80 100755
(executable)
--- a/
tools/shellcheck.sh
+++ b/
tools/shellcheck.sh
@@
-6,16
+6,17
@@
set -eu
set -eu
+shellcheck=${SHELLCHECK:-shellcheck}
retcode=0
while read -r script_file; do
echo "Running ShellCheck on \`$script_file\`"
pushd "${script_file%/*}" >/dev/null
retcode=0
while read -r script_file; do
echo "Running ShellCheck on \`$script_file\`"
pushd "${script_file%/*}" >/dev/null
-
shellcheck
-x "${script_file##*/}" || retcode=$?
+
"$shellcheck"
-x "${script_file##*/}" || retcode=$?
popd >/dev/null
done <<< "$(find . -type f -name '*.sh' \
! -path './.git/*' \
popd >/dev/null
done <<< "$(find . -type f -name '*.sh' \
! -path './.git/*' \
-
! -path ./config/ltmain.sh \
+ ! -path ./config/ltmain.sh \
! -path ./tests/utils/tap-driver.sh \
! -path ./tests/utils/tap/tap.sh)"
! -path ./tests/utils/tap-driver.sh \
! -path ./tests/utils/tap/tap.sh)"
This page took
0.024909 seconds
and
4
git commands to generate.