commit: 4d7da7ac603f610fef687ea95357e7b727b19d03 Author: Austin English <wizardedit <AT> gentoo <DOT> org> AuthorDate: Mon Nov 28 19:23:43 2016 +0000 Commit: Austin English <wizardedit <AT> gentoo <DOT> org> CommitDate: Mon Nov 28 19:27:13 2016 +0000 URL: https://gitweb.gentoo.org/proj/eselect-java.git/commit/?id=4d7da7ac
src/scripts/run-java-tool.bash.in: replace `which` with `command -v` which is an external binary and may not be installed on all systems. command is a shell builtin, and more likely to be available. Based on a patch by Manuel RĂ¼ger <mrueg <AT> gentoo.org> Gentoo-Bug: https://bugs.gentoo.org/599392 src/scripts/run-java-tool.bash.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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
