From 283af31f10e20126051c512900904066b6660c03 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 16 Apr 2024 02:07:35 -0400 Subject: [PATCH] Improved example files, push Doom path so it will work on more distros. --- .scripts/TobyCustom/Project_Brutality_Operation_MDK.sh | 4 ++++ .scripts/TobyCustom/Project_Brutality_Toby_Deluxe.sh | 4 ++++ .scripts/TobyCustom/Project_Brutality_Toby_Demo.sh | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/.scripts/TobyCustom/Project_Brutality_Operation_MDK.sh b/.scripts/TobyCustom/Project_Brutality_Operation_MDK.sh index 0988f2c..7dcea92 100755 --- a/.scripts/TobyCustom/Project_Brutality_Operation_MDK.sh +++ b/.scripts/TobyCustom/Project_Brutality_Operation_MDK.sh @@ -1,8 +1,12 @@ #!/usr/bin/env bash +# Set the current path to the Doom path required by some OS. +pushd "${doomPath}" + # Add all the TobyDoom stuff we need, exclude things we do not. mapfile -t addons < <(find "${doomPath}/Addons/" -type f -iname "TobyV${tobyVersion%%-*}_*" \ -not -iname "TobyV${tobyVersion%%-*}_Decorations.pk3" \ + -not -iname "TobyV${tobyVersion%%-*}_Monsters.pk3" ) # Set up the pk3 and wad files diff --git a/.scripts/TobyCustom/Project_Brutality_Toby_Deluxe.sh b/.scripts/TobyCustom/Project_Brutality_Toby_Deluxe.sh index 203386f..e85690d 100755 --- a/.scripts/TobyCustom/Project_Brutality_Toby_Deluxe.sh +++ b/.scripts/TobyCustom/Project_Brutality_Toby_Deluxe.sh @@ -1,8 +1,12 @@ #!/usr/bin/env bash +# Set the current path to the Doom path required by some OS. +pushd "${doomPath}" + # Add all the TobyDoom stuff we need, exclude things we do not. mapfile -t addons < <(find "${doomPath}/Addons/" -type f -iname "TobyV${tobyVersion%%-*}_*" \ -not -iname "TobyV${tobyVersion%%-*}_Decorations.pk3" \ + -not -iname "TobyV${tobyVersion%%-*}_Monsters.pk3" ) # Set up the pk3 and wad files diff --git a/.scripts/TobyCustom/Project_Brutality_Toby_Demo.sh b/.scripts/TobyCustom/Project_Brutality_Toby_Demo.sh index d466ae2..c55d8bc 100755 --- a/.scripts/TobyCustom/Project_Brutality_Toby_Demo.sh +++ b/.scripts/TobyCustom/Project_Brutality_Toby_Demo.sh @@ -1,8 +1,12 @@ #!/usr/bin/env bash +# Set the current path to the Doom path required by some OS. +pushd "${doomPath}" + # Add all the TobyDoom stuff we need, exclude things we do not. mapfile -t addons < <(find "${doomPath}/Addons/" -type f -iname "TobyV${tobyVersion%%-*}_*" \ -not -iname "TobyV${tobyVersion%%-*}_Decorations.pk3" \ + -not -iname "TobyV${tobyVersion%%-*}_Monsters.pk3" ) # Set up the pk3 and wad files