Stop on first doom path in find command to set the path for unzipping.

This commit is contained in:
Storm Dragon 2022-11-05 17:44:10 -04:00
parent df80de96be
commit 3c95a86f0b

View File

@ -529,7 +529,7 @@ case "${game}" in
exit 0
fi
fi
doomPath="$(find /usr/share -type d -name "doom" 2> /dev/null)"
doomPath="$(find /usr/share -type d -name "doom" 2> /dev/null | head -1)"
download "https://www.dropbox.com/s/rsswh6m8hhjwp7g/Toby%20Acc%20Mod%20V5-1%20Update%20Fix.zip?dl=0" "https://www.dropbox.com/s/zzi4x9y6rg9yvja/TobyDoom2Deluxe_LevelsOnly.zip?dl=0"
if [[ ! -e "${doomPath}/TobyDeluxeMapPack_V5-1.pk3" ]]; then
if sudo unzip -d "${doomPath}" "${cache}/Toby Acc Mod V5-1 Update Fix.zip" ; then