summaryrefslogtreecommitdiff
path: root/al32-mktorrent.sh
diff options
context:
space:
mode:
Diffstat (limited to 'al32-mktorrent.sh')
-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