Skip to content

Commit

Permalink
fix .sh output template typo
Browse files Browse the repository at this point in the history
color_reset requires evaluating
flag error in returned flow control value
  • Loading branch information
sarfatis authored May 11, 2020
1 parent ae54951 commit b9d328b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/formats/sh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
}
Expand Down

0 comments on commit b9d328b

Please sign in to comment.