mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-11-22 05:01:25 +00:00
Add -L to curl command
curl won't follow redirects without -L. Since redirects are used by some who have a private repository this breaks curl in those instances. Adding -L fixes the problem.
This commit is contained in:
parent
64c74d621b
commit
606390af59
@ -884,7 +884,7 @@ establish_gpg_trust () {
|
|||||||
# extract the filename from the url, use the temp dir just created
|
# extract the filename from the url, use the temp dir just created
|
||||||
declare -g gpg_key_file="$gpg_tmp_dir/${gpg_key_url##*/}"
|
declare -g gpg_key_file="$gpg_tmp_dir/${gpg_key_url##*/}"
|
||||||
|
|
||||||
if ! curl -o "$gpg_key_file" --silent --show-error "$gpg_key_url"; then
|
if ! curl -L -o "$gpg_key_file" --silent --show-error "$gpg_key_url"; then
|
||||||
rm -rf "$gpg_tmp_dir"
|
rm -rf "$gpg_tmp_dir"
|
||||||
exit_message "Error downloading the Rocky Linux signing key."
|
exit_message "Error downloading the Rocky Linux signing key."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user