From 5feec9f6b9d6355cae1b6e8fed7e143955cdb78f Mon Sep 17 00:00:00 2001 From: erik Date: Fri, 11 Nov 2022 15:46:02 +0100 Subject: [PATCH] Bugfixes --- .../c4k-website-build/image/resources/functions.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/infrastructure/c4k-website-build/image/resources/functions.sh b/infrastructure/c4k-website-build/image/resources/functions.sh index 411b9e4..323831a 100644 --- a/infrastructure/c4k-website-build/image/resources/functions.sh +++ b/infrastructure/c4k-website-build/image/resources/functions.sh @@ -10,7 +10,7 @@ function execute-scripts-when-existing { websitedir=$(ls $BUILDDIR) if [[ -f $BUILDDIR/$websitedir/$SCRIPTFILE ]] then - checksum="$(sha256sum $BUILDDIR/$websitedir/$SCRIPTFILE)" + checksum="$(sha256sum $BUILDDIR/$websitedir/$SCRIPTFILE | grep -oE "^[a-z0-9]+")" if [[ "$SHA256SUM" == "$checksum" ]] then chmod +x $BUILDDIR/$websitedir/$SCRIPTFILE @@ -22,8 +22,7 @@ function execute-scripts-when-existing { exit 1 fi else - printf "No script file provided, exiting." - exit 0 + printf "No script file provided." fi }