mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-06-02 19:00:16 +00:00
Don't attempt to exclude modules when we don't have any
If our exclude module list is empty don't attempt to disable the empty list.
This commit is contained in:
parent
d647babb5c
commit
551ac93557
|
@ -1093,9 +1093,11 @@ EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make sure that excluded modules are disabled.
|
# Make sure that excluded modules are disabled.
|
||||||
infomsg $'Disabling excluded modules\n\n'
|
if (( ${#module_excludes[@]} )); then
|
||||||
safednf -y module disable "${module_excludes[@]}" ||
|
infomsg $'Disabling excluded modules\n\n'
|
||||||
|
safednf -y module disable "${module_excludes[@]}" ||
|
||||||
exit_message "Can't disable modules ${module_excludes[*]}"
|
exit_message "Can't disable modules ${module_excludes[*]}"
|
||||||
|
fi
|
||||||
|
|
||||||
infomsg $'\nSyncing packages\n\n'
|
infomsg $'\nSyncing packages\n\n'
|
||||||
dnf -y distro-sync || exit_message "Error during distro-sync."
|
dnf -y distro-sync || exit_message "Error during distro-sync."
|
||||||
|
|
Loading…
Reference in New Issue
Block a user