1
0
Fork 0

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.
This commit is contained in:
Tom Willemse 2022-06-18 21:01:20 -07:00
parent ae4693a155
commit e882f79e73

View file

@ -65,7 +65,7 @@ sudo." | fold >&2
fi fi
# Download, ready, output # Download, ready, output
mirrorlist=$(curl --no-progress-meter -L "$(make-url)") mirrorlist=$(curl --no-progress-meter --location "$(make-url)")
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
echo "$mirrorlist" | sed 's/^#\([^#].*\)/\1/' > "$dest" echo "$mirrorlist" | sed 's/^#\([^#].*\)/\1/' > "$dest"