mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-11-25 22:46:26 +00:00
ignore shellcheck globbing
This commit is contained in:
parent
78df5a0131
commit
bd1c8321df
@ -33,7 +33,7 @@ release_to_install=($(curl -s ${current_url} | awk -F '"' '/rocky-repos|rocky-gp
|
|||||||
#sigs_to_swap=()
|
#sigs_to_swap=()
|
||||||
|
|
||||||
# Defaults
|
# Defaults
|
||||||
list_enabled=("$(yum repolist enabled | awk '!/repo/ {print $1}')")
|
list_enabled=("$(dnf repolist enabled | awk '!/repo/ {print $1}')")
|
||||||
enabled_modules=("$(dnf module list --enabled | grep rhel | awk '{print $1}')")
|
enabled_modules=("$(dnf module list --enabled | grep rhel | awk '{print $1}')")
|
||||||
convert_info_dir=/root/convert
|
convert_info_dir=/root/convert
|
||||||
reinstall_all_rpms=false
|
reinstall_all_rpms=false
|
||||||
@ -99,7 +99,7 @@ package_swaps() {
|
|||||||
echo "Removing dnf cache"
|
echo "Removing dnf cache"
|
||||||
rm -rf /var/cache/{yum,dnf}
|
rm -rf /var/cache/{yum,dnf}
|
||||||
echo "Ensuring repos are enabled before the package swap"
|
echo "Ensuring repos are enabled before the package swap"
|
||||||
dnf config-manager --set-enabled "${list_enabled[@]}"
|
dnf config-manager --set-enabled ${list_enabled[@]} || { echo "Repo name missing?" ; exit 25; }
|
||||||
dnf distro-sync -y
|
dnf distro-sync -y
|
||||||
else
|
else
|
||||||
exit_message "We failed to install the release package."
|
exit_message "We failed to install the release package."
|
||||||
|
Loading…
Reference in New Issue
Block a user