Update CheckMainFile.yml

This commit is contained in:
DanielNoord
2021-01-31 21:15:22 +01:00
committed by GitHub
parent fd02f172dc
commit 3e4b9a0dd3

View File

@@ -8,11 +8,9 @@ jobs:
- name: Check if CookieMonster.js is built correctly
run: |
cat ./src/Header.js ./src/Cache.js ./src/Config.js ./src/Data.js ./src/Disp.js ./src/Main.js ./src/Sim.js ./src/Footer.js > CookieMonsterTest.js
if [ -n "$(cmp CookieMonster.js CookieMonsterTest.js)" ]
then
if cmp -s CookieMonster.js CookieMonsterTest.js; then
echo '### SUCCESS: CookieMonster is correctly built! ###'
else
echo '### WARNING: CookieMonster.js does not seem to be correct. Have you compiled the source files into the final file using either of the combine files? ###' &
echo ### WARNING: CookieMonster.js does not seem to be correct. Have you compiled the source files into the final file using either of the combine files? ###
exit 1
fi