From 60deacdbb2b43ef28dd816a23c63bcbceebe9698 Mon Sep 17 00:00:00 2001 From: Zouhair AMAZZAL Date: Sat, 24 Dec 2022 15:13:44 +0100 Subject: [PATCH] DEV-3918 test(auto-exec-bin) fix the test, uncorrect condition to check if bin already exists --- sh/tests/auto-exec-bin_test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sh/tests/auto-exec-bin_test.sh b/sh/tests/auto-exec-bin_test.sh index 970d45bc..2fb9157f 100755 --- a/sh/tests/auto-exec-bin_test.sh +++ b/sh/tests/auto-exec-bin_test.sh @@ -6,10 +6,11 @@ IFS=' ' FILENAME="student/auto-exec-bin.sh" +BINFILE="~/myBins/01exec" script_dirS=$(cd -P "$(dirname "$BASH_SOURCE")" &>/dev/null && pwd) setupbin() { - if [ -f ${FILENAME} ]; then + if [ -f ${BINFILE} ]; then echo "bin already exists!" else mkdir -p ~/myBins