index : releng | |
Archlinux32 release engineering | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2022-02-01 21:37:19 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2022-02-01 21:37:19 +0100 |
commit | b43bf951c7471fabd2301641ba3503bacf5b91e7 (patch) | |
tree | 14954f32f0e7d6ca0376c37b2864178d0c5c7051 /al32-mktorrent.sh | |
parent | 3b569e24016a3cb5258e9e856d7161b8360499f3 (diff) |
-rwxr-xr-x | al32-mktorrent.sh | 4 |
diff --git a/al32-mktorrent.sh b/al32-mktorrent.sh index 22fa8fb..969ad1b 100755 --- a/al32-mktorrent.sh +++ b/al32-mktorrent.sh @@ -30,7 +30,7 @@ MIRRORLIST_FILE="https://git.archlinux32.org/packages/plain/core/pacman-mirrorli function create_torrent_for_arch () { declare -a available_mirrors - mirrorlist="$(curl "$MIRRORLIST_FILE" 2>/dev/null | grep Server | cut -d '=' -f 2 | sed -e 's/\s//g;s_$arch/$repo_archisos/_')" + mirrorlist="$(curl -f "$MIRRORLIST_FILE" 2>/dev/null | grep Server | cut -d '=' -f 2 | sed -e 's/\s//g;s_$arch/$repo_archisos/_')" if [ "$#" -eq 0 ] ; then echo "No architecture specified, selecting 'i686'" @@ -50,7 +50,7 @@ function create_torrent_for_arch () { if [ ! -f "$iso_string" ] ; then echo -e "$fg_reset${fg_bold}Downloading iso...$fg_reset" - curl -O "${available_mirrors[0]}$iso_string" + curl -f -O "${available_mirrors[0]}$iso_string" else echo -e "$fg_reset${fg_bold}Reusing already downloaded iso...$fg_reset" fi |