Skip to content

Commit

Permalink
1.7.4: do nothing outside master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek committed Oct 23, 2019
1 parent f9508bd commit 34992ef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions bump.nim
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,16 @@ proc bump*(minor = false; major = false; patch = true; release = false;
debug "dry run and done"
return

# if we're not on the master branch, let's just bail for now
let
branch = appearsToBeMasterBranch()
if branch.isNone:
crash "uh oh; i cannot tell if i'm on the master branch"
elif not branch.get:
crash "i'm afraid to modify any branch that isn't master"
else:
debug "good; this appears to be the master branch"

# copy the new .nimble over the old one
try:
debug &"copying {temp} over", target
Expand Down
2 changes: 1 addition & 1 deletion bump.nimble
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "1.7.3"
version = "1.7.4"
author = "disruptek"
description = "a tiny tool to bump nimble versions"
license = "MIT"
Expand Down

0 comments on commit 34992ef

Please sign in to comment.