Skip to content

Commit

Permalink
Merge pull request #24 from buzzdecafe/untput
Browse files Browse the repository at this point in the history
guard against minimal environments
  • Loading branch information
davidchambers authored Sep 18, 2016
2 parents 693060a + 133ad41 commit 76e7beb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions xyz
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,11 @@ next_version=$("$dir/node_modules/.bin/semver" -i "$increment" "$version") ||
message="${message_template//X.Y.Z/$next_version}"
tag="${tag_template//X.Y.Z/$next_version}"

bold=$(tput bold)
reset=$(tput sgr0)
if type tput &>/dev/null ; then
bold=$(tput bold)
reset=$(tput sgr0)
fi

printf "Current version is ${bold}${version}${reset}. "
printf "Press [enter] to publish ${bold}${name}@${next_version}${reset}."
read -s # suppress user input
Expand Down

0 comments on commit 76e7beb

Please sign in to comment.