Skip to content

Commit 35c0ef4

Browse files
Merge pull request #52 from dineshgowda24/fix-release-version-prefix
update `info.plist` without version v prefix
2 parents 0cd3edb + 09b370a commit 35c0ef4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tools/release.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,17 @@ spinner() {
2626
prompt_version() {
2727
bold "Input new version (e.g., 1.2.3):"
2828
read -r VERSION_INPUT
29-
VERSION="v${VERSION_INPUT//v/}"
29+
RAW_VERSION="${VERSION_INPUT//v/}"
30+
VERSION="v${RAW_VERSION}"
3031
}
3132

3233
set_package_name() {
3334
PACKAGE_NAME="alfred-gcp-workflow-${VERSION}.alfredworkflow"
3435
}
3536

3637
update_info_plist() {
37-
bold "Updating version in info.plist to ${VERSION}..."
38-
/usr/libexec/PlistBuddy -c "Set :version ${VERSION}" info.plist
38+
bold "Updating version in info.plist to ${RAW_VERSION}..."
39+
/usr/libexec/PlistBuddy -c "Set :version ${RAW_VERSION}" info.plist
3940
}
4041

4142
commit_version_update() {

0 commit comments

Comments
 (0)