aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-06-18 21:01:20 -0700
committerGravatar Tom Willemse2022-06-18 21:01:20 -0700
commite882f79e73088a00555a4048b810c0095654051e (patch)
tree3430461b8de0313889d9ddc256564bf2ae28ad4d
parentae4693a15578d5965a74def4eb8615d6034aef6a (diff)
downloadupdate-mirrors-e882f79e73088a00555a4048b810c0095654051e.tar.gz
update-mirrors-e882f79e73088a00555a4048b810c0095654051e.zip
Replace ‘-L’ with ‘--location’
This produces no difference functionally since ‘--location’ and ‘-L’ are aliases, but generally I prefer using long argument names in scripts because they make it clearer what is going on.
-rwxr-xr-xupdate-mirrors2
1 files changed, 1 insertions, 1 deletions
diff --git a/update-mirrors b/update-mirrors
index 4035fea..0cfd046 100755
--- a/update-mirrors
+++ b/update-mirrors
@@ -65,7 +65,7 @@ sudo." | fold >&2
fi
# Download, ready, output
-mirrorlist=$(curl --no-progress-meter -L "$(make-url)")
+mirrorlist=$(curl --no-progress-meter --location "$(make-url)")
if [[ $? -eq 0 ]]; then
echo "$mirrorlist" | sed 's/^#\([^#].*\)/\1/' > "$dest"