diff --git a/src/main/shell/run-sonar-swift.sh b/src/main/shell/run-sonar-swift.sh index c885958b..8c240b71 100755 --- a/src/main/shell/run-sonar-swift.sh +++ b/src/main/shell/run-sonar-swift.sh @@ -184,7 +184,7 @@ testScheme=''; readParameter testScheme 'sonar.swift.testScheme' # The name of your binary file (application) binaryName=''; readParameter binaryName 'sonar.swift.appName' # Get the path of plist file -plistFile=`xcodebuild -showBuildSettings -project ${projectFile} | grep -i 'PRODUCT_SETTINGS_PATH' -m 1 | sed 's/[ ]*PRODUCT_SETTINGS_PATH = //'` +plistFile=`xcodebuild -showBuildSettings -project "${projectFile}" | grep -i 'PRODUCT_SETTINGS_PATH' -m 1 | sed 's/[ ]*PRODUCT_SETTINGS_PATH = //'` # Number version from plist if no sonar.projectVersion numVerionFromPlist=`defaults read ${plistFile} CFBundleShortVersionString`