Merge "Check cached file size when downloading an url"
This commit is contained in:
commit
f5e191dc8e
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ dest=$2
|
||||||
mkdir -p $(dirname $dest)
|
mkdir -p $(dirname $dest)
|
||||||
tmp=$(mktemp $(dirname $dest)/.download.XXXXXXXX)
|
tmp=$(mktemp $(dirname $dest)/.download.XXXXXXXX)
|
||||||
|
|
||||||
if [ -f $dest ] ; then
|
if [ -f $dest -a -s $dest ] ; then
|
||||||
time_cond="-z $dest"
|
time_cond="-z $dest"
|
||||||
success="Server copy has changed. Using server version of $url"
|
success="Server copy has changed. Using server version of $url"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue