summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2011-12-02 15:53:20 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2011-12-02 15:53:20 +0100
commitdf01b658ff2e688a67b799df16f0a8680be874f7 (patch)
tree24421858d51638456c4684ca5d85b523876ff90e
parent4eeee0c7208e75eddb497d281c4bfc96c6d6b109 (diff)
downloadbuildscripts-df01b658ff2e688a67b799df16f0a8680be874f7.tar.gz
buildscripts-df01b658ff2e688a67b799df16f0a8680be874f7.tar.bz2
buildscripts-df01b658ff2e688a67b799df16f0a8680be874f7.zip
fix cd statement
-rwxr-xr-xbin/itzks-gitcreate2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/itzks-gitcreate b/bin/itzks-gitcreate
index f0f7f13..8232ae2 100755
--- a/bin/itzks-gitcreate
+++ b/bin/itzks-gitcreate
@@ -7,7 +7,7 @@ for pkg in "$@"; do
pkg=$(basename $pkg)
ssh -lnwt code.das-netzwerkteam.de "cd /srv/git/code.das-netzwerkteam.de && ./setup-repository $subdir/$pkg '$pkg upstream project'"
ssh -lnwt code.das-netzwerkteam.de "cd /srv/git/code.das-netzwerkteam.de && ./update-repository-posixacls $subdir/$pkg"
- cd "$subdir/$pkg"
+ test -d "$pkg" && cd "$pkg"
echo "$pkg: MASTER BRANCH" && git push ssh://nwt@code.das-netzwerkteam.de:32032/srv/git/code.das-netzwerkteam.de/$subdir/$pkg master
git branch | grep upstream &>/dev/null && echo "$pkg: RELEASE BRANCH" && git push ssh://nwt@code.das-netzwerkteam.de:32032/srv/git/code.das-netzwerkteam.de/$subdir/$pkg upstream
git branch | grep pristine-tar &>/dev/null && echo "$pkg: PRISTINE-TAR" && git push ssh://nwt@code.das-netzwerkteam.de:32032/srv/git/code.das-netzwerkteam.de/$subdir/$pkg pristine-tar