diff options
-rw-r--r-- | src/scripts/run-java-tool.bash.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripts/run-java-tool.bash.in b/src/scripts/run-java-tool.bash.in index 2587fee..67e4dba 100644 --- a/src/scripts/run-java-tool.bash.in +++ b/src/scripts/run-java-tool.bash.in @@ -26,7 +26,7 @@ toolpath=$( export PATH= . "@GENTOO_PORTAGE_EPREFIX@/usr/share/java-config-2/vm/${vm_handle}" 2> /dev/null : ${PATH:=${vmpath}/bin:${vmpath}/jre/bin} - "@GENTOO_PORTAGE_EPREFIX@/usr/bin/which" "${tool}" 2> /dev/null + command -v "${tool}" 2> /dev/null ) if [ -x "${toolpath}" ]; then |