Skip to content

Commit

Permalink
Bundle before retaging when a Gemfile exists
Browse files Browse the repository at this point in the history
  • Loading branch information
kassio committed Oct 13, 2017
1 parent 3623fad commit ca0b4bc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bin/retag
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
#!/usr/bin/env bash

_bundle() {
if [ -e 'Gemfile' ]
then
echo 'Gemfile found, bundling first'
bundle
fi
}

_retag() {
_bundle
ctags || (rm tags && ctags)
ctags-gems || (rm tags.gems && ctags-gems)
}
Expand Down

0 comments on commit ca0b4bc

Please sign in to comment.