[Gpg4win-devel] [PATCH 1/4] Redownload the package if it is present as a 0-byte file
Ángel González
angel at pgp.16bits.net
Tue Jun 21 00:01:00 CEST 2016
Easily caused by a download error
---
packages/download.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/download.sh b/packages/download.sh
index 86ec679..ee7dfdd 100755
--- a/packages/download.sh
+++ b/packages/download.sh
@@ -155,7 +155,7 @@ while read key value ; do
if [ -z "$name" ]; then
name=`basename "$value"`
fi
- if [ -f "$name" -a "$force" = "no" ]; then
+ if [ -s "$name" -a "$force" = "no" ]; then
[ $quiet = no ] && echo "package \`$url' ... already exists"
else
echo -n "downloading \`$url' ..."
--
2.8.3
More information about the Gpg4win-devel
mailing list