]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - install-gamepack.sh
Merge commit '48410b113dd2036e69dbf723a39ec9af02fc9b12'
[xonotic/netradiant.git] / install-gamepack.sh
index 4073d401a165a5746e1c9c1d7261781bab7eeca3..3a36c200ecdd6a6c3e1f788903d249ad25f877b7 100755 (executable)
@@ -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