From b9d328be2041e42813119d060c86893853b8e250 Mon Sep 17 00:00:00 2001 From: sarfatis <63501438+sarfatis@users.noreply.github.com> Date: Mon, 11 May 2020 10:02:57 +0200 Subject: [PATCH] fix .sh output template typo color_reset requires evaluating flag error in returned flow control value --- lib/formats/sh.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/formats/sh.sh b/lib/formats/sh.sh index 1a059e0b..3cdcf8be 100644 --- a/lib/formats/sh.sh +++ b/lib/formats/sh.sh @@ -150,7 +150,7 @@ original_check() { # Check they are not the exact same file (hardlinks allowed): if [ "$1" = "$2" ]; then - echo "${COL_RED}^^^^^^ Error: original and duplicate point to the *same* path - cancelling.....{COL_RESET}" + echo "${COL_RED}^^^^^^ Error: original and duplicate point to the *same* path - cancelling.....${COL_RESET}" return 1 fi @@ -160,6 +160,7 @@ original_check() { else if [ "$(check_for_equality "$1" "$2")" -ne "0" ]; then echo "${COL_RED}^^^^^^ Error: files no longer identical - cancelling.....${COL_RESET}" + return 1 fi fi }