summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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