From 041f5a9606804c8dc46d3f44b141723ce0ac0cd4 Mon Sep 17 00:00:00 2001 From: x70b1 Date: Wed, 2 Jan 2019 12:20:10 +0100 Subject: [PATCH] update build.sh --- build.sh | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/build.sh b/build.sh index 4b3478b..aa3d2f9 100644 --- a/build.sh +++ b/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