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:
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