Skip to content

Commit

Permalink
now exits on cd error
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoanc authored Mar 12, 2021
1 parent f432fab commit a883e73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions EternalModInjectorShell/EternalModInjectorShell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 )

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a883e73

Please sign in to comment.