]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
move cache more carefully
authorHolger Levsen <holger@layer-acht.org>
Thu, 23 Aug 2012 11:50:50 +0000 (13:50 +0200)
committerHolger Levsen <holger@layer-acht.org>
Thu, 23 Aug 2012 11:50:50 +0000 (13:50 +0200)
liveboot_build.sh

index 13abc167d747e7288fdcc566e3e241fdae59c6ca..6b11f465449e0560c1f964bd7d52601d5e41e5b9 100755 (executable)
@@ -20,6 +20,7 @@ apt-get -y install debootstrap ldap-utils
 git clone git://git/ri/liveboot.git
 cd liveboot
 git checkout feature/jenkins
+[ -d /srv/build/cache ] && mv /srv/build/cache .
 ./build.sh $BUILD_NUMBER
 EOF
 
@@ -33,5 +34,4 @@ cd /srv/build/liveboot
 sudo mv cache ..
 cd ..
 sudo rm liveboot -Rf
-sudo mkdir liveboot
-sudo mv cache liveboot
+