aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/assembly/bin/sonar-scanner
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/assembly/bin/sonar-scanner')
-rwxr-xr-xsrc/main/assembly/bin/sonar-scanner2
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