Bundle exec only if Gemfile is present

This commit is contained in:
Hakan Ensari 2011-02-22 13:39:59 +00:00
commit cbbb79b282

View file

@ -3,7 +3,7 @@ autoload -U compinit
compinit -i
function _bundle_command {
if command -v bundle; then
if command -v bundle && [ -e "Gemfile" ]; then
bundle exec $@
else
$@