]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - install-gamepack.sh
Use non-deprecated GDK key constants
[xonotic/netradiant.git] / install-gamepack.sh
old mode 100644 (file)
new mode 100755 (executable)
index 4073d40..3a36c20
@@ -16,8 +16,12 @@ if [ -d "$pack/tools" ]; then
        pack="$pack/tools"
 fi
 for GAMEFILE in "$pack/games"/*.game; do
-       $CP "$GAMEFILE" "$dest/games/"
+       if [ x"$GAMEFILE" != x"$pack/games/*.game" ]; then
+               $CP "$GAMEFILE" "$dest/games/"
+       fi
 done
-for GAMEDIR in "$pack"/*.game/; do
-       $CP_R "$GAMEDIR" "$dest/"
+for GAMEDIR in "$pack"/*.game; do
+       if [ x"$GAMEDIR" != x"$pack/*.game" ]; then
+               $CP_R "$GAMEDIR" "$dest/"
+       fi
 done