Exit correctly if shellcheck detects problems
This commit is contained in:
parent
d530d9059e
commit
b8e376cc7c
1 changed files with 2 additions and 2 deletions
|
@ -20,8 +20,8 @@ git status -zu | while read -rd '' xy filename; do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $filename = *.sh ]] || is_a "$filename" bash; then
|
if [[ $filename = *.sh ]] || is_a "$filename" bash; then
|
||||||
if has shellcheck; then
|
if has shellcheck && ! shellcheck -s bash "$filename"; then
|
||||||
shellcheck -s bash "$filename"
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue