Bugfixes
This commit is contained in:
parent
70f356a1a9
commit
5feec9f6b9
1 changed files with 2 additions and 3 deletions
|
@ -10,7 +10,7 @@ function execute-scripts-when-existing {
|
||||||
websitedir=$(ls $BUILDDIR)
|
websitedir=$(ls $BUILDDIR)
|
||||||
if [[ -f $BUILDDIR/$websitedir/$SCRIPTFILE ]]
|
if [[ -f $BUILDDIR/$websitedir/$SCRIPTFILE ]]
|
||||||
then
|
then
|
||||||
checksum="$(sha256sum $BUILDDIR/$websitedir/$SCRIPTFILE)"
|
checksum="$(sha256sum $BUILDDIR/$websitedir/$SCRIPTFILE | grep -oE "^[a-z0-9]+")"
|
||||||
if [[ "$SHA256SUM" == "$checksum" ]]
|
if [[ "$SHA256SUM" == "$checksum" ]]
|
||||||
then
|
then
|
||||||
chmod +x $BUILDDIR/$websitedir/$SCRIPTFILE
|
chmod +x $BUILDDIR/$websitedir/$SCRIPTFILE
|
||||||
|
@ -22,8 +22,7 @@ function execute-scripts-when-existing {
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
printf "No script file provided, exiting."
|
printf "No script file provided."
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue