File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
sonar-swift-plugin/src/main/shell Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ function readParameter() {
6363 parameter=$1
6464 shift
6565
66- eval $variable =" \" $( sed ' /^\#/d' sonar-project.properties | grep $parameter | tail -n 1 | cut -d ' =' -f2- | sed ' s/^[[:space:]]*//;s/[[:space:]]*$// ' ) \" "
66+ eval $variable =$( printf %q " $( sed ' /^\#/d' sonar-project.properties | grep $parameter | tail -n 1 | cut -d ' =' -f2-) " )
6767}
6868
6969# Run a set of commands with logging and error handling
@@ -277,13 +277,14 @@ rm -rf sonar-reports
277277mkdir sonar-reports
278278
279279# Extracting project information needed later
280+ buildCmd=($XCODEBUILD_CMD clean build)
280281echo -n ' Extracting Xcode project information'
281282if [[ " $workspaceFile " != " " ]] ; then
282- buildCmdPrefix= " -workspace $workspaceFile "
283+ buildCmd+=( -workspace " $workspaceFile " )
283284else
284- buildCmdPrefix= " -project $projectFile "
285+ buildCmd+=( -project " $projectFile " )
285286fi
286- buildCmd=( $XCODEBUILD_CMD clean build $buildCmdPrefix -scheme $appScheme )
287+ buildCmd+=( -scheme $appScheme )
287288if [[ ! -z " $destinationSimulator " ]]; then
288289 buildCmd+=(-destination " $destinationSimulator " -destination-timeout 360 COMPILER_INDEX_STORE_ENABLE=NO)
289290fi
You can’t perform that action at this time.
0 commit comments