Skip to content

Instantly share code, notes, and snippets.

@Bashta
Last active July 16, 2019 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bashta/4ace8aabd214d56722e38591bef86aa0 to your computer and use it in GitHub Desktop.
Save Bashta/4ace8aabd214d56722e38591bef86aa0 to your computer and use it in GitHub Desktop.
#!/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