From 362fc15df35cfe9db30d87361a53829e0050d972 Mon Sep 17 00:00:00 2001 From: Philip Hands Date: Thu, 26 May 2016 21:31:36 +0200 Subject: lvc: work around the .iso not belonging to jenkins --- bin/lvc.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin/lvc.sh') diff --git a/bin/lvc.sh b/bin/lvc.sh index d7fc2975..28a2fd36 100755 --- a/bin/lvc.sh +++ b/bin/lvc.sh @@ -33,7 +33,10 @@ fetch_if_newer() { echo "File exists, will only re-download if a newer one is available..." curlopts="$curlopts -z $file" fi - curl $curlopts -o $file $url + curl $curlopts -o $file.new $url + if [ -e $file.new ] ; then + mv -f $file.new $file + fi } discard_snapshots() { -- cgit v1.2.3-70-g09d2