update build.sh

master
x70b1 2019-01-02 12:20:10 +01:00
parent f27ee79a20
commit 041f5a9606
1 changed files with 2 additions and 12 deletions

View File

@ -4,18 +4,8 @@ error_count=0
scripts="polybar-scripts/*/*.sh"
for file in $scripts; do
# Exceptions
if [ "$file" = "polybar-scripts/info-hackspeed/info-hackspeed.sh" ]; then
shellcheck --exclude=SC2016,SC2059 "$file"
if [ $? -ne 0 ]; then
error_count=$((error_count+1))
fi
else
shellcheck "$file"
if [ $? -ne 0 ]; then
error_count=$((error_count+1))
fi
if ! shellcheck "$file"; then
error_count=$((error_count+1))
fi
done