diff --git a/install-sonar-scanner-cli.sh b/install-sonar-scanner-cli.sh index 5bbaf20..d61631f 100755 --- a/install-sonar-scanner-cli.sh +++ b/install-sonar-scanner-cli.sh @@ -55,8 +55,9 @@ fi unzip -q $SCANNER_FILE_NAME -sed -i "s/use_embedded_jre=true/use_embedded_jre=false/g" sonar-scanner-$INPUT_SCANNERVERSION-$FLAVOR/bin/sonar-scanner - +if [[ "$RUNNER_OS" == "Linux" ]]; then + sed -i "s/use_embedded_jre=true/use_embedded_jre=false/g" sonar-scanner-$INPUT_SCANNERVERSION-$FLAVOR/bin/sonar-scanner +end # Folder name should correspond to the directory cached by the actions/cache mv sonar-scanner-$INPUT_SCANNERVERSION-$FLAVOR $RUNNER_TEMP/sonar-scanner-cli-$INPUT_SCANNERVERSION-$RUNNER_OS-$RUNNER_ARCH