]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - install-gamepacks.sh
it's better to close file and return on non-void function
[xonotic/netradiant.git] / install-gamepacks.sh
index 2e3723da016495399538ac019f246e86f3edd4d4..bc49364b9bdac1b2d230e2947089781e41fcecb6 100755 (executable)
@@ -10,7 +10,7 @@ dest=$1
 
 case "$DOWNLOAD_GAMEPACKS" in
        yes)
 
 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"
                ;;
        all)
                BATCH=1 $SH "$SOURCE_DIR/download-gamepacks.sh"
@@ -20,8 +20,8 @@ case "$DOWNLOAD_GAMEPACKS" in
 esac
 
 set -e
 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!"
                $ECHO "Game packs not found, please run"
                $ECHO "  $SOURCE_DIR/download-gamepacks.sh"
                $ECHO "and then try again!"