fix gamepack download using git-archive
authorRudolf Polzer <rpolzer@grawp.(none)>
Sun, 11 Apr 2010 20:01:28 +0000 (22:01 +0200)
committerRudolf Polzer <rpolzer@grawp.(none)>
Sun, 11 Apr 2010 20:01:28 +0000 (22:01 +0200)
download-gamepacks.sh

index 1450ca6..42b1960 100644 (file)
@@ -103,7 +103,9 @@ pack()
                        ;;
                gitdir)
                        rm -rf "games/$pack"
+                       cd games
                        git archive --remote="$source" --prefix="$pack/" "$2":"$1" | tar xvf -
+                       cd ..
                        ;;
        esac
 }