mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2024-11-10 06:14:38 +03:00
remove shell script escaping, as now escaped in xcodeproj
This commit is contained in:
parent
e393c01571
commit
91f8582d17
@ -241,15 +241,14 @@ public class PBXProjGenerator {
|
||||
case let .script(script):
|
||||
shellScript = script
|
||||
}
|
||||
let escapedScript = shellScript.replacingOccurrences(of: "\"", with: "\\\"").replacingOccurrences(of: "\n", with: "\\n")
|
||||
var shellScriptPhase = PBXShellScriptBuildPhase(
|
||||
let shellScriptPhase = PBXShellScriptBuildPhase(
|
||||
reference: generateUUID(PBXShellScriptBuildPhase.self, String(describing: runScript.name) + shellScript + target.name),
|
||||
files: [],
|
||||
name: runScript.name ?? "Run Script",
|
||||
inputPaths: Set(runScript.inputFiles),
|
||||
outputPaths: Set(runScript.outputFiles),
|
||||
shellPath: runScript.shell ?? "/bin/sh",
|
||||
shellScript: escapedScript)
|
||||
shellScript: shellScript)
|
||||
shellScriptPhase.runOnlyForDeploymentPostprocessing = runScript.runOnlyWhenInstalling ? 1 : 0
|
||||
objects.append(.pbxShellScriptBuildPhase(shellScriptPhase))
|
||||
buildPhases.append(shellScriptPhase.reference)
|
||||
|
Loading…
Reference in New Issue
Block a user