summaryrefslogtreecommitdiffstats
path: root/bin/rebootstrap.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-01 23:54:53 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-01 23:54:53 +0200
commit4305dec2ec62140b728b089c4e8c4b20f87d7c68 (patch)
tree0c3c852c9bb2c61153259dc3779b63302292cc04 /bin/rebootstrap.sh
parent09822546fc7c1aa7b0993baa19314173f966c773 (diff)
downloadjenkins.debian.net-4305dec2ec62140b728b089c4e8c4b20f87d7c68.tar.xz
correct option
Diffstat (limited to 'bin/rebootstrap.sh')
-rwxr-xr-xbin/rebootstrap.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/rebootstrap.sh b/bin/rebootstrap.sh
index 1b7ef1ec..34cd0d63 100755
--- a/bin/rebootstrap.sh
+++ b/bin/rebootstrap.sh
@@ -8,12 +8,12 @@ DEBUG=true
common_init "$@"
cleanup_all() {
- rm -r $CODE
+ rm -r $CODE || true
}
CODE=$(mktemp --tmpdir=/tmp gitclone-XXXXXXXXX -u)
trap cleanup_all INT TERM EXIT
-git clone git://anonscm.debian.org/users/helmutg/rebootstrap.git --depth 1 $CODE
+git clone --depth 1 git://anonscm.debian.org/users/helmutg/rebootstrap.git $CODE
cd $CODE
git checkout $1
shift