From 2464c9f16bbfcf8feafe08a8db55576456570fd3 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 7 Nov 2017 22:03:01 -0500 Subject: [PATCH] differentiating and improving the two test methods --- scripts/core/functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index e70d6e57..c750fff2 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -124,7 +124,7 @@ if [ -z "$skip_all" ]; then function test_or_fail() { if [ $? -ne 0 ]; then - echo -e "\n\nfailed on: $*" + echo -e "\n\naction failed: $*\n\nExiting script..." error_sound exit 1 fi @@ -134,7 +134,7 @@ if [ -z "$skip_all" ]; then function test_or_continue() { if [ $? -ne 0 ]; then - echo -e "\n\nfailed on: $*" + echo -e "\n\nerror occurred: $*\n\nContinuing script..." error_sound fi } -- 2.34.1