summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-07-19 14:15:54 +0200
committerErich Eckner <git@eckner.net>2019-07-19 14:15:54 +0200
commitff856616ab46da96d8b05b67c3712cfc25fd858f (patch)
treef763e68220644649e4bf585694e7115d047c420f
parent93718d5bc0b09014a612cb34c13d1373047d3f3a (diff)
downloadreleng-ff856616ab46da96d8b05b67c3712cfc25fd858f.tar.xz
al32-mktorrent.sh: only dl sig and checksums if necessary
-rwxr-xr-xal32-mktorrent.sh8
1 files changed, 6 insertions, 2 deletions
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