Skip to content

Commit 11a50bb

Browse files
committed
versionCheckHook: Check for --version first
More likely to find the version number in `--version` than `--help` so look for that first.
1 parent aa2ca0a commit 11a50bb

File tree

1 file changed

+1
-1
lines changed
  • pkgs/by-name/ve/versionCheckHook

1 file changed

+1
-1
lines changed

pkgs/by-name/ve/versionCheckHook/hook.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ versionCheckHook(){
6161
exit 2
6262
fi
6363
if [[ -z "${versionCheckProgramArg}" ]]; then
64-
for cmdArg in "--help" "--version"; do
64+
for cmdArg in "--version" "--help"; do
6565
echoPrefix="$(_handleCmdOutput "$cmdProgram" "$cmdArg" "$versionCheckKeepEnvironment")"
6666
if [[ "$echoPrefix" == "Successfully managed to" ]]; then
6767
break

0 commit comments

Comments
 (0)