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 1450ca688df86b456a8f048c85007ad8f440adde..42b19606c8dd153499de847b4f44deaaffba3b5f 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
 }