Last active
July 16, 2019 14:31
-
-
Save Bashta/4ace8aabd214d56722e38591bef86aa0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
if [ ! -e ".updated_build_number" ] ; then | |
touch ".updated_build_number" | |
perl -i -pe 'BEGIN{undef $/;} s/\t<key>CFBundleVersion<\/key>\n\t<string>\K(\d+)/$1+1/em' ./xxxx/xxxx/Info.plist | |
git add ./xxxxx/xxxxx/Info.plist | |
git commit --amend | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment