We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8707f6 commit e3dcb0aCopy full SHA for e3dcb0a
bin/commands/scripts/shellcheck.sh
@@ -1,10 +1,14 @@
1
#!/bin/bash
2
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
+STATUS=0
+while IFS="" read -r file
+do
+ if [[ $file != *"/node_modules/"* ]] && [[ $file != *"/core/"* ]] && [[ $file != *"/bin/scripts/nghttp2/"* ]]; then
+ if ! shellcheck "$file"
+ then
+ STATUS=1
+ fi
11
12
+done < <(find "$DIR/../../../" -type f -name "*.sh" -print)
13
+
14
+ exit $STATUS
0 commit comments