Typo fixes and checking download error
authorWerner Koch <wk@gnupg.org>
Tue, 29 Nov 2005 10:50:24 +0000 (10:50 +0000)
committerWerner Koch <wk@gnupg.org>
Tue, 29 Nov 2005 10:50:24 +0000 (10:50 +0000)
packages/download.sh

index c291c78..c4be11a 100644 (file)
 
 WGET=wget
 
-${WGET} -N ftp://ftp.gpw4win.org/gpg4win/packages.current{,.sig}
+url="ftp://ftp.gpg4win.org/gpg4win/"
+echo "downloading packages list from \`$url'."
+if ! ${WGET} -N -q $url/packages.current{,.sig} ; then
+    echo "download of packages list failed." >&2
+    exit 1
+fi
 
 if ! gpgv --keyring ./packages.keys packages.current.sig packages.current
   then