From: Rudolf Polzer Date: Sat, 2 Apr 2011 10:55:10 +0000 (+0200) Subject: fix install-gamepack abort with an empty src dir X-Git-Tag: xonotic-v0.5.0~38 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=81ad86d6eec2fa654eeb13946e20e5787dc1c35e;p=xonotic%2Fnetradiant.git fix install-gamepack abort with an empty src dir --- diff --git a/install-gamepack.sh b/install-gamepack.sh index 1f149666..3a36c200 100755 --- a/install-gamepack.sh +++ b/install-gamepack.sh @@ -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/" + if [ x"$GAMEDIR" != x"$pack/*.game" ]; then + $CP_R "$GAMEDIR" "$dest/" + fi done