File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 184184 isa = PBXNativeTarget;
185185 buildConfigurationList = 5BAB935424C14FBB00D433AD /* Build configuration list for PBXNativeTarget "HackerNews" */;
186186 buildPhases = (
187- 5BD62E9226949BE300C7F95C /* Run Script */,
188187 5B2AA82E26A66F17001315E9 /* ShellScript */,
188+ 5BD62E9226949BE300C7F95C /* Run Script */,
189189 5BAB934024C14FB900D433AD /* Sources */,
190190 5BAB934124C14FB900D433AD /* Frameworks */,
191191 5BAB934224C14FB900D433AD /* Resources */,
273273 );
274274 runOnlyForDeploymentPostprocessing = 0;
275275 shellPath = /bin/bash;
276- shellScript = "build_number=\"$(/usr/libexec/PlistBuddy -c \"Print CFBundleVersion\" ${PROJECT_DIR}/${INFOPLIST_FILE})\"\nbuild_number =$(($build_number + 1))\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion $build_number\" ${PROJECT_DIR}/${INFOPLIST_FILE}\n";
276+ shellScript = "if test -n \"$(git status --porcelain)\"; then\n build_number=\"$(/usr/libexec/PlistBuddy -c \"Print CFBundleVersion\" ${PROJECT_DIR}/${INFOPLIST_FILE})\"\n build_number =$(($build_number + 1))\n /usr/libexec/PlistBuddy -c \"Set :CFBundleVersion $build_number\" ${PROJECT_DIR}/${INFOPLIST_FILE}\nfi \n";
277277 };
278278 5BD62E9226949BE300C7F95C /* Run Script */ = {
279279 isa = PBXShellScriptBuildPhase;
You can’t perform that action at this time.
0 commit comments