Skip to content

Commit e3dcb0a

Browse files
committed
[shellcheck] fail travis builds
1 parent b8707f6 commit e3dcb0a

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

bin/commands/scripts/shellcheck.sh

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
#!/bin/bash
22
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
3-
4-
find "$DIR/../../../" -type f -name "*.sh" -print |
5-
while IFS="" read -r file
6-
do
7-
if [[ $file != *"/node_modules/"* ]] && [[ $file != *"/core/"* ]] && [[ $file != *"/bin/scripts/nghttp2/"* ]]; then
8-
shellcheck "$file"
9-
fi
10-
done
3+
STATUS=0
4+
while IFS="" read -r file
5+
do
6+
if [[ $file != *"/node_modules/"* ]] && [[ $file != *"/core/"* ]] && [[ $file != *"/bin/scripts/nghttp2/"* ]]; then
7+
if ! shellcheck "$file"
8+
then
9+
STATUS=1
10+
fi
11+
fi
12+
done < <(find "$DIR/../../../" -type f -name "*.sh" -print)
13+
14+
exit $STATUS

0 commit comments

Comments
 (0)