summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/lvc.sh5
1 files changed, 4 insertions, 1 deletions
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() {