diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/main/assembly/bin/sonar-scanner | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/assembly/bin/sonar-scanner b/src/main/assembly/bin/sonar-scanner index 128143f..c344131 100755 --- a/src/main/assembly/bin/sonar-scanner +++ b/src/main/assembly/bin/sonar-scanner @@ -48,7 +48,7 @@ if [ -n "$JAVA_HOME" ] then java_cmd="$JAVA_HOME/bin/java" else - java_cmd="`which java`" + java_cmd="`\\unset -f command; \\command -v java`" fi if [ -z "$java_cmd" -o ! -x "$java_cmd" ] ; then |