Skip to content

Commit

Permalink
Merge pull request #579 from ZOSOpenTools/578-rename-of-query-option-…
Browse files Browse the repository at this point in the history
…no-versions-breaks-zopen-upgrade

Fix query logic in zopen-install
  • Loading branch information
DevonianTeuchter authored Nov 15, 2023
2 parents a0f86e4 + c70bf5e commit eecc7a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/zopen-install
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,13 @@ if [ -z "${chosenRepos}" ]; then
ph=$!
killph="kill -HUP ${ph}"
addCleanupTrapCmd "${killph}"
chosenRepos="$(${MYDIR}/zopen-query list --installed --no-header --no-versions)"
chosenRepos="$(${MYDIR}/zopen-query list --installed --no-header --no-version 2>&1)"
zqrc=$?
${killph} 2> /dev/null # if the timer is not running, the kill will fail
sleep 1 # give the above process time to clear
if [ ${zqrc} -ne 0 ]; then
printError "Query for installed packages unexpectedly failed; zopen-query returned message: '${chosenRepos}'"
fi
fi
fi

Expand Down

0 comments on commit eecc7a6

Please sign in to comment.