From 59061a5af0e4800fb2979e6fc74cfeaa48876157 Mon Sep 17 00:00:00 2001 From: DanielNoord Date: Sun, 31 Jan 2021 21:08:40 +0100 Subject: [PATCH] Update CheckMainFile.yml --- .github/workflows/CheckMainFile.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CheckMainFile.yml b/.github/workflows/CheckMainFile.yml index 64a9bac..6b0dbbb 100644 --- a/.github/workflows/CheckMainFile.yml +++ b/.github/workflows/CheckMainFile.yml @@ -8,4 +8,10 @@ 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 - cmp --silent CookieMonster.js CookieMonsterTest.js && echo '### SUCCESS: CookieMonster is correctly built! ###' || (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) + if [ -n "$(cmp CookieMonster.js CookieMonsterTest.js)" ] + then + 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 + else + echo '### SUCCESS: CookieMonster is correctly built! ###' + fi