We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbf6517 commit b043ed3Copy full SHA for b043ed3
prerequisites/install-functions/find_or_install.sh
@@ -35,7 +35,7 @@ find_or_install()
35
if type "$executable" >& /dev/null; then
36
printf "yes.\n"
37
package_in_path=true
38
- package_version_in_path=$("$executable" --version|head -1)
+ package_version_in_path=$( ("${executable}" --version 2>/dev/null || "${executable}" -V) | head -1)
39
else
40
printf "no.\n"
41
package_in_path=false
0 commit comments