From ec171a197befd00a0bb7852a3dc530be3ac7a3e0 Mon Sep 17 00:00:00 2001 From: alonit Date: Fri, 13 Sep 2024 12:32:30 +0300 Subject: [PATCH] fix test --- mySolution.sh | 5 +++++ test/test.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mySolution.sh b/mySolution.sh index e69de29..e89ff1f 100644 --- a/mySolution.sh +++ b/mySolution.sh @@ -0,0 +1,5 @@ +mkdir src/secretDir +rm -rf src/maliciousFiles +touch src/secretDir/.secret +chmod 600 src/secretDir/.secret +/bin/bash src/generateSecret.sh \ No newline at end of file diff --git a/test/test.sh b/test/test.sh index ac0b8dd..8cdeef8 100644 --- a/test/test.sh +++ b/test/test.sh @@ -5,7 +5,7 @@ set -e # Check secret -SECRET=$(head -n 1 SOLUTION | md5sum) +SECRET=$(head -n 1 SOLUTION | xargs | md5sum) if [ "$SECRET" != "b326212055e5c61bfb292d47046215f8 -" ] then