From 5316c5c1134ffcbfcd35220a05659b3497c45314 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 3 Nov 2025 17:25:29 -0500 Subject: [PATCH] Fixed a bug with the doom install location. --- .install/FreeDoom.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.install/FreeDoom.sh b/.install/FreeDoom.sh index e1ea29a..d50156a 100644 --- a/.install/FreeDoom.sh +++ b/.install/FreeDoom.sh @@ -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}