-
Notifications
You must be signed in to change notification settings - Fork 99
Remove v prefix from appVersion #279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,12 +19,11 @@ set -o pipefail | |
| # if arg1 is set, it will be used as the version number | ||
| if [ -z "$1" ]; then | ||
| VERSION=$(awk -F= '/^VERSION/ { print $2 }' versions.mk | tr -d '[:space:]') | ||
| # Remove any v prefix, if exists. | ||
| VERSION="${VERSION#v}" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Btw, all of this is a great example that (well-maintained) code comments easily can save a bunch of time overall. |
||
| else | ||
| VERSION=$1 | ||
| fi | ||
| VERSION=${VERSION} | ||
| # Remove any v prefix, if exists. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But.. the code below is broken. :)
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤦 Updated. |
||
| VERSION="${VERSION#v}" | ||
|
|
||
|
|
||
| # Note(JP): the goal below is for VERSION to always be | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the future we should add a code comment here, too, if the template language allows for that.