Skip to content

Commit

Permalink
Fix specific version option.
Browse files Browse the repository at this point in the history
Broke the `-v` option in `dots node release`. Fixed it.

See #53.
  • Loading branch information
flatheadmill committed Sep 11, 2019
1 parent f36d8a7 commit c09ee68
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions libexec/dots/node/release.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ while [ $index -le $#opts ]; do
;;
-v|--version)
let index+=1
bump=$opts[$index]
version=$opts[$index]
;;
esac
let index+=1
Expand Down Expand Up @@ -125,13 +125,16 @@ if [[ -z "$version" ]]; then
;;
esac
version="$major.$minor.$micro"
if [[ -n "$identifier" ]]; then
version+="-$identifier.$pre"
tag=canary
else
tag=latest
untag=canary
fi
fi

if [[ -n "$identifier" ]]; then
version+="-$identifier.$pre"
tag=canary
elif [[ "$version" = 0.* ]]; then
tag=canary
else
tag=latest
untag=canary
fi

if [ -z "$prefix" ]; then
Expand Down

0 comments on commit c09ee68

Please sign in to comment.