-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build [v99] Update update_version.sh (#10243)
- Loading branch information
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
if [[ "${#}" -ne 1 ]] | ||
# the first argument is the current version, and the second is the new version | ||
if [[ "${#}" -ne 2 ]] | ||
then | ||
echo 'arg missing for updated version number' | ||
exit 1 | ||
fi | ||
|
||
# If needed, modify the starting version number locally | ||
# This script is mainly a reference as to what needs to be updated | ||
ls Client/Info.plist Extensions/*/*Info.plist | xargs perl -pi -e "s/0\.0\.1/$1/g" | ||
ls Client/Info.plist Extensions/*/*Info.plist | xargs perl -pi -e "s/0\.0\.1/$2/g" | ||
perl -pi -e "s/$1/$2/g" bitrise.yml |