Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerkiz committed Jun 8, 2022
1 parent b61dc57 commit 28f3b2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ controlFile="control.lua"
originalSum=$(sha256sum "$controlFile" | awk '{print $1}')
grep -rl "ENABLE MAPS HERE" -A 500 "$controlFile" | grep -v "ENABLE MAPS HERE" | xargs sed -i "s/^require 'maps/--require 'maps/g"
changedSum=$(sha256sum "$controlFile" | awk '{print $1}')
changedDiffers=$(echo "$originalSum" "$controlFile" | sha256sum -c > /dev/null 2>&1)

echo "Original file sum:" "$originalSum"
echo "Changed file sum:" "$changedSum"

if (echo "$changedDiffers" | grep -q "OK" ) ; then

if (echo "$originalSum" "$controlFile" | sha256sum -c | grep -q "OK" > /dev/null 2>&1 ) ; then
echo "Control does not differ"
echo "::set-output name=should_run::0"
else
Expand Down

0 comments on commit 28f3b2a

Please sign in to comment.