diff --git a/all.sh b/all.sh index 2751f32..1e449c6 100755 --- a/all.sh +++ b/all.sh @@ -17,14 +17,14 @@ if [[ -f .errors ]]; then count=$(cat .errors | wc -l) if [[ $count -gt 0 ]]; then - echo -e "--------------------" - echo -e " \e[0;31m$count\e[0m errors detected!" - echo -e "--------------------" - cat .errors + echo -e "--------------------" + echo -e " \e[0;31m$count\e[0m errors detected!" + echo -e "--------------------" + cat .errors + exit 1 else - echo -e "\e[0;32m------------------------\e[0m" - echo -e "everything 's \e[0;32mall right!\e[0m" - echo -e "\e[0;32m------------------------\e[0m" + echo -e "\e[0;32m------------------------\e[0m" + echo -e "everything 's \e[0;32mall right!\e[0m" + echo -e "\e[0;32m------------------------\e[0m" fi - fi