Skip to content

Commit b9c4db3

Browse files
committed
Do not fail the build if unable to copy OnMyCommandCM.plugin
Build script tries to copy `OnMyCommandCM.plugin` to `/Library/Contextual Menu Items` which may require sudo. Don't fail because of this.
1 parent baa77c0 commit b9c4db3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OnMyCommandCM/OnMyCommandCM.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@
295295
);
296296
runOnlyForDeploymentPostprocessing = 0;
297297
shellPath = /bin/sh;
298-
shellScript = "ditto \"$BUILT_PRODUCTS_DIR\"/OnMyCommandCM.plugin '/Library/Contextual Menu Items/OnMyCommandCM.plugin'\n";
298+
shellScript = "/usr/bin/ditto \"$BUILT_PRODUCTS_DIR\"/OnMyCommandCM.plugin '/Library/Contextual Menu Items/OnMyCommandCM.plugin'\ncopy_result=$?\nif [ ${copy_result} != 0 ]; then\n echo \"warning: could not copy OnMyCommandCM.plugin to '/Library/Contextual Menu Items/'\"\nfi\n";
299299
showEnvVarsInLog = 0;
300300
};
301301
/* End PBXShellScriptBuildPhase section */

0 commit comments

Comments
 (0)