update build.sh
parent
f27ee79a20
commit
041f5a9606
14
build.sh
14
build.sh
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue