Fixed a bug with the doom install location.
This commit is contained in:
@@ -21,6 +21,12 @@ doomPath="$(find /usr/share -type d -name "doom" 2> /dev/null | head -1)"
|
||||
download_named "keyshare-universal.pk3" "https://forum.zdoom.org/download/file.php?id=42262"
|
||||
download "${ipfsGateway}/ipfs/QmdbLQofHiypCseiZEwcZVrrbP2T3DbKteVM9DF7cwHEqb?filename=toby_doom_${tobyVersion}_full.zip"
|
||||
unzip -n -d "${installPath}/doom" "${cache}/toby_doom_${tobyVersion}_full.zip"
|
||||
# Move contents from nested folder up one directory (including hidden files)
|
||||
shopt -s dotglob
|
||||
mv "${installPath}/doom/TobyAccessibilityMod_Version9"*/* "${installPath}/doom/"
|
||||
shopt -u dotglob
|
||||
# Remove the now-empty nested folder
|
||||
rmdir "${installPath}/doom/TobyAccessibilityMod_Version9"*
|
||||
#unzip -n -d "${installPath}/doom" "${cache}/OpMDK_ForV${tobyVersion}.zip"
|
||||
cp -v "${cache}/keyshare-universal.pk3" "${installPath}/doom"
|
||||
rm -fv "${installPath}/doom/"*.{bat,exe,dll,ps1}
|
||||
|
||||
Reference in New Issue
Block a user