Skip to content

Commit 057bcf4

Browse files
committed
fix(runOnlyForDeploymentPostprocessing): remove strict validation
1 parent de3701e commit 057bcf4

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/pbxProject.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,12 @@ function pbxShellScriptBuildPhaseObj (obj, options, phaseName) {
16141614
obj.outputPaths = options.outputPaths || [];
16151615
obj.shellPath = options.shellPath;
16161616
obj.shellScript = '"' + options.shellScript.replace(/"/g, '\\"') + '"';
1617-
obj.runOnlyForDeploymentPostprocessing = options.runOnlyForDeploymentPostprocessing === 1 ? 1 : 0;
1617+
1618+
// By default, runOnlyForDeploymentPostprocessing is set to 0.
1619+
// Any truthy value, it will be set to 1, including any non-empty strings.
1620+
if (options.runOnlyForDeploymentPostprocessing) {
1621+
obj.runOnlyForDeploymentPostprocessing = 1;
1622+
}
16181623

16191624
return obj;
16201625
}

0 commit comments

Comments
 (0)