mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-11-21 20:51:26 +00:00
Fix issue where we didn't exit when we were supposed to.
Exiting from a subshell doesn't actually exit the script. Move the exit to outside of the subshell.
This commit is contained in:
parent
c8737c2302
commit
f3fe6d768a
@ -357,11 +357,9 @@ bin_check() {
|
||||
# as a special-case below to avoid having the extras repository map to epel.
|
||||
repoquery () {
|
||||
local name val prev result
|
||||
result=$(
|
||||
safednf -y -q "${dist_repourl_swaps[@]}" \
|
||||
--setopt=epel.excludepkgs=epel-release repoquery -i "$1" ||
|
||||
exit_message "Failed to fetch info for package $1."
|
||||
)
|
||||
result=$(safednf -y -q "${dist_repourl_swaps[@]}" \
|
||||
--setopt=epel.excludepkgs=epel-release repoquery -i "$1") ||
|
||||
exit_message "Failed to fetch info for package $1."
|
||||
if ! [[ $result ]]; then
|
||||
# We didn't match this package, the repo could be disabled.
|
||||
return 1
|
||||
|
Loading…
Reference in New Issue
Block a user