From c15b1c8a7855158dc5ae79dd87dc5b68e4d67031 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sat, 14 Oct 2017 04:01:02 +0200 Subject: [PATCH] do not look for pack to install in already installed pack Previously, the install-gamepacks.sh script was looking for all subdirectories in games/ directory for *.games directory to copy them inside games/ directory. So, on first run, it was looking for games/XonoticPack/xonotic.game to copy it as games/xonotic.game Then on second run, it was looking for games/XonoticPack/xonotic.game and also for games/xonotic.game/xonotic.game which is silly. Now the install-gamepacks.sh script is looking for games/*Pack subdirectories only, it means all gamepacks must end with a capitalized Pack suffix, which is already the case and is defined in download-gamepacks.sh after all. --- install-gamepacks.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-gamepacks.sh b/install-gamepacks.sh index b42c59cb..bc49364b 100755 --- a/install-gamepacks.sh +++ b/install-gamepacks.sh @@ -20,8 +20,8 @@ case "$DOWNLOAD_GAMEPACKS" in esac set -e -for GAME in games/*; do - if [ "$GAME" = "games/*" ]; then +for GAME in games/*Pack; do + if [ "$GAME" = "games/*Pack" ]; then $ECHO "Game packs not found, please run" $ECHO " $SOURCE_DIR/download-gamepacks.sh" $ECHO "and then try again!" -- 2.39.2