From a883e737dab1ccc0213aa65f37e2778ab2fc8e08 Mon Sep 17 00:00:00 2001 From: PowerBall253 <77066815+PowerBall253@users.noreply.github.com> Date: Fri, 12 Mar 2021 09:50:26 -0600 Subject: [PATCH] now exits on cd error --- EternalModInjectorShell/EternalModInjectorShell.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/EternalModInjectorShell/EternalModInjectorShell.sh b/EternalModInjectorShell/EternalModInjectorShell.sh index 8ae80db..51fdf9c 100755 --- a/EternalModInjectorShell/EternalModInjectorShell.sh +++ b/EternalModInjectorShell/EternalModInjectorShell.sh @@ -426,7 +426,7 @@ if [ "$VANILLA_GAME_MD5_A" == "$GameMD5" ] || [ "$VANILLA_GAME_MD5_B" == "$GameM printf "%s\n" " ${blu}Patching game executable...${end} " - ( cd base || printf "%s\n" "${red}Failed to open ${1} folder!${end}" && exit 1 + ( cd base || return ./EternalPatcher --update > /dev/null ./EternalPatcher --patch "../DOOMEternalx64vk.exe" > /dev/null ) @@ -571,7 +571,7 @@ if [ "$HAS_CHECKED_RESOURCES" == "0" ]; then printf "%s\n" " ${blu}Getting vanilla resource hash offsets... (idRehash)${end} " - ( cd base || printf "%s\n" "${red}Failed to open ${1} folder!${end}" && exit 1 + ( cd base || return ./idRehash --getoffsets > /dev/null ) if [ "$?" == "1" ]; then @@ -601,7 +601,7 @@ fi printf "%s\n" " ${blu}Rehashing resource offsets... (idRehash)${end} " -( cd base || printf "%s\n" "${red}Failed to open ${1} folder!${end}" && exit 1 +( cd base || return ./idRehash > /dev/null ) if [ "$?" == "1" ]; then @@ -615,7 +615,7 @@ fi printf "%s\n" " ${blu}Patching build manifest... (DEternal_patchManifest)${end} " -( cd base || printf "%s\n" "${red}Failed to open ${1} folder!${end}" && exit 1 +( cd base || return ./DEternal_patchManifest 8B031F6A24C5C4F3950130C57EF660E9 > /dev/null ) if [ "$?" == "101" ]; then