Skip to content

Commit de3701e

Browse files
committed
fix(runOnlyForDeploymentPostprocessing): only allow 0 or 1, defaulting invalid values to 0
1 parent 3547f5f commit de3701e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/pbxProject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ 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 || 0;
1617+
obj.runOnlyForDeploymentPostprocessing = options.runOnlyForDeploymentPostprocessing === 1 ? 1 : 0;
16181618

16191619
return obj;
16201620
}

0 commit comments

Comments
 (0)