Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/al32-mktorrent.sh
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-02-01 21:37:19 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2022-02-01 21:37:19 +0100
commitb43bf951c7471fabd2301641ba3503bacf5b91e7 (patch)
tree14954f32f0e7d6ca0376c37b2864178d0c5c7051 /al32-mktorrent.sh
parent3b569e24016a3cb5258e9e856d7161b8360499f3 (diff)
adapted for buildmaster, ISO, update works, not the torrentsarch32-20220201
Diffstat (limited to 'al32-mktorrent.sh')
-rwxr-xr-xal32-mktorrent.sh4
1 files changed, 2 insertions, 2 deletions
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