]> source.dussan.org Git - sonar-scanner-cli.git/commit
[SCANCLI-153] Use shell alternative to `which`
authorVincent Latombe <vincent@latombe.net>
Thu, 29 Aug 2024 12:46:49 +0000 (14:46 +0200)
committerEric Giffon <eric.giffon@sonarsource.com>
Wed, 4 Sep 2024 10:24:18 +0000 (12:24 +0200)
commit836ca8607702a84bfbba8f643983049b5e1071b5
treebf85186c0a52b9812df8333c781468613bd61258
parenta3c341f0b95704ed1b1d17e2273fb0458a9c5db6
[SCANCLI-153] Use shell alternative to `which`

`which` may or may not be available on host systems. There are
equivalent which are shell builtin.

This is essentially using the same as https://github.com/apache/maven/commit/8852b87412c0af70efcee76f1bb12bc44635aab1, which has proven to work fine on a large shell variety.
src/main/assembly/bin/sonar-scanner