From ff856616ab46da96d8b05b67c3712cfc25fd858f Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 19 Jul 2019 14:15:54 +0200 Subject: al32-mktorrent.sh: only dl sig and checksums if necessary --- al32-mktorrent.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'al32-mktorrent.sh') diff --git a/al32-mktorrent.sh b/al32-mktorrent.sh index fcedce4..4cfd22b 100755 --- a/al32-mktorrent.sh +++ b/al32-mktorrent.sh @@ -73,8 +73,12 @@ function create_torrent_for_arch () { echo -e "$fg_reset${fg_bold}Downloading verification files...$fg_reset" - curl -O "${available_mirrors[0]}$iso_string.sig" - curl -O "${available_mirrors[0]}sha512sums" + if [ ! -f "$iso_string.sig" ] ; then + curl -O "${available_mirrors[0]}$iso_string.sig" + fi + if [ ! -f "sha512sums" ] ; then + curl -O "${available_mirrors[0]}sha512sums" + fi echo -n -e "$fg_reset${fg_bold}Checking PGP signature...$fg_reset " gpg --verify "$iso_string.sig" "$iso_string" || exit 100 -- cgit v1.2.3