summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-12-02 03:28:11 +0100
committerHolger Levsen <holger@layer-acht.org>2012-12-02 03:28:11 +0100
commit97399c51283255aaf70108c80119a239c8d95355 (patch)
treec0aab6aa990127f6da60b2129ca28b5c4755a821
parentccb472ff7ddc1520e990450383316eaf4172c02a (diff)
downloadjenkins.debian.net-97399c51283255aaf70108c80119a239c8d95355.tar.xz
fixup: implement basics for cd tests
-rwxr-xr-xbin/cd_tester.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/cd_tester.sh b/bin/cd_tester.sh
index 851dd18f..7d042b50 100755
--- a/bin/cd_tester.sh
+++ b/bin/cd_tester.sh
@@ -91,8 +91,8 @@ monitor_installation() {
trap cleanup_all INT TERM EXIT
# only download if $IMAGE is older than a week (60*24*7=10080)
-if test $(find $IMAGE -mmin +10080) ; then
- rm $IMAGE
+if test $(find $IMAGE -mmin +10080) || ! test -f $IMAGE ; then
+ rm -f $IMAGE
curl $IMAGE_URL > $IMAGE
fi
sudo mkdir -p $IMAGE_MNT