it's better to close file and return on non-void function
[xonotic/netradiant.git] / install-gamepacks.sh
index 2e3723d..bc49364 100755 (executable)
@@ -10,7 +10,7 @@ dest=$1
 
 case "$DOWNLOAD_GAMEPACKS" in
        yes)
-               LICENSEFILTER=GPL BATCH=1 $SH "$SOURCE_DIR/download-gamepacks.sh"
+               LICENSEFILTER=GPL,BSD BATCH=1 $SH "$SOURCE_DIR/download-gamepacks.sh"
                ;;
        all)
                BATCH=1 $SH "$SOURCE_DIR/download-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!"