Commit 96265d26 authored by Jeff Wallace's avatar Jeff Wallace
Browse files

fix bundler plugin for root level folders

this fix allows _within-bundled-project() to properly pickup a Gemfile
within a root level folder (ie. /my_project)
parent 1a0be15d
......@@ -20,7 +20,7 @@ _bundler-installed() {
_within-bundled-project() {
local check_dir=$PWD
while [ "$(dirname $check_dir)" != "/" ]; do
while [ $check_dir != "/" ]; do
[ -f "$check_dir/Gemfile" ] && return
check_dir="$(dirname $check_dir)"
done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment