Fix Scripts/increment_build_number.sh

This commit is contained in:
Brandon Evans 2021-01-19 22:22:40 -07:00
parent f1ecf1ad3d
commit b3e7cc62ac
No known key found for this signature in database
GPG key ID: D58A4B8DB64F8E93

View file

@ -9,7 +9,7 @@
infoplist_file="$(pwd)/Xcodes/Resources/Info.plist" infoplist_file="$(pwd)/Xcodes/Resources/Info.plist"
# Get latest tag hash matching pattern # Get latest tag hash matching pattern
hash=$(git rev-list --tags="v" --max-count=1) hash=$(git rev-list --tags="v*" --max-count=1)
# Get latest tag at hash that matches the same pattern as a prefix in order to support commits with multiple tags # Get latest tag at hash that matches the same pattern as a prefix in order to support commits with multiple tags
last_tag=$(git describe --tags --match "v*" "$hash") last_tag=$(git describe --tags --match "v*" "$hash")
# Get build number from last component of tag name # Get build number from last component of tag name