We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f54d0f9 commit 0332553Copy full SHA for 0332553
validateScripts.sh
@@ -18,13 +18,21 @@ validate_script() {
18
}
19
20
21
-find . -type f -name '*.sh' -print0 | while IFS= read -r -d '' file; do
22
- retval=$(validate_script "$file" )
23
- if [ -n "$retval" ]; then
24
- echo "$retval"
25
- exit 1
26
- fi
27
-done
+EXCLUDE_PATH="*/docker-images/*"
+
+find "$(pwd -P)" -type f -name '*.sh' -not -path "$EXCLUDE_PATH" -print0 | {
+ return_code=0
+ while IFS= read -r -d '' file; do
28
+ retval=$(validate_script "$file" )
29
+ if [ -n "$retval" ]; then
30
+ echo "$retval"
31
+ return_code=1;
32
+ fi
33
+ done
34
+ exit $return_code
35
+}
36
37
found_error=$?
38
0 commit comments