Hush, grep

This commit is contained in:
John Barnette
2012-12-05 20:06:13 -08:00
parent b97bd351e2
commit 5072115b6f

View File

@@ -14,7 +14,7 @@ gem build -q boxen.gemspec
# Make sure we're on the master branch.
(git branch | grep '* master') || {
(git branch | grep -q '* master') || {
echo "Only release from the master branch."
exit 1
}
@@ -27,7 +27,7 @@ tag=v`ls boxen-*.gem | sed 's/^boxen-\(.*\)\.gem$/\1/'`
git fetch -t origin
(git tag -l | grep "$tag") && {
(git tag -l | grep -q "$tag") && {
echo "Whoops, there's already a '${tag}' tag."
exit 1
}