From 0a23d100257b07b12f71610fb9a2d8100a429b2b Mon Sep 17 00:00:00 2001 From: Christopher Fremond <34804391+Frenchris@users.noreply.github.com> Date: Tue, 29 Mar 2022 16:22:58 +0100 Subject: [PATCH] Update to-git-or-not-to-git_test.sh failing the exercise when the file exist but is empty --- sh/tests/to-git-or-not-to-git_test.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/sh/tests/to-git-or-not-to-git_test.sh b/sh/tests/to-git-or-not-to-git_test.sh index 7f546b1bc..1140a11b7 100755 --- a/sh/tests/to-git-or-not-to-git_test.sh +++ b/sh/tests/to-git-or-not-to-git_test.sh @@ -13,6 +13,7 @@ if [ -f ${FILENAME} ]; then diff <(echo "$submitted") <(echo "$expected") else echo "File exist but empty" + exit 1 fi else echo "File does not exist"