Skip to content

Commit

Permalink
Minor correction to yum invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
portante committed Sep 7, 2022
1 parent 256c812 commit fc97eb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/containers/images/gen-tags-from-rpm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ name="${4}"
# Ensure we only consider the pbench-agent RPM's version string from the
# target repo.
url="${url_prefix}/${name}/${dist}-${arch}"
version_string="$(yum list -q --repofrompath pbench,"${url}" pbench-agent.noarch 2>/dev/null | awk 'FNR==2{print $2}')"
version_string="$(yum list -q --repofrompath ${name},"${url}" pbench-agent.noarch 2>/dev/null | awk 'FNR==2{print $2}')"
if [[ -z "${version_string}" ]]; then
printf -- "Failed to fetch pbench-agent.noarch version string from '%s'\n" "${url}" >&2
exit 1
Expand Down

0 comments on commit fc97eb7

Please sign in to comment.