Skip to content

Commit

Permalink
Fix version numbers for new releases
Browse files Browse the repository at this point in the history
  • Loading branch information
oleewere committed May 5, 2019
1 parent 72c4495 commit 4d8462c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ brew install cmctl

Using wget:
```bash
CMCTL_VERSION=
CMCTL_VERSION=0.1.0
wget -qO- "https://github.com/oleewere/cmctl/releases/download/v${CMCTL_VERSION}/cmctl_${CMCTL_VERSION}_linux_64-bit.tar.gz" | tar -C /usr/bin -zxv cmctl
```

Using curl:
```bash
CMCTL_VERSION=
CMCTL_VERSION=0.1.0
curl -L -s "https://github.com/oleewere/cmctl/releases/download/v${CMCTL_VERSION}/cmctl_${CMCTL_VERSION}_linux_64-bit.tar.gz" | tar -C /usr/bin -xzv cmctl
```

Expand Down
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function update_readme_version() {
local next_release="$1"
local readme_md_location="$CMCTL_ROOT_DIR/README.md"
local version_number=$(get_version_number $next_release)
sed -i.bak "s/CMCTL_VERSION=[[:digit:]]\.[[:digit:]]\.[[:digit:]]/CMCTL_VERSION=${new_version}/" "$readme_md_location"
sed -i.bak "s/CMCTL_VERSION=[[:digit:]]\.[[:digit:]]\.[[:digit:]]/CMCTL_VERSION=${version_number}/" "$readme_md_location"
rm "$readme_md_location.bak"
git add "$readme_md_location"
git commit -m "Update README.md (for release version: $next_release)"
Expand Down

0 comments on commit 4d8462c

Please sign in to comment.