mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 21:31:19 +08:00 
			
		
		
		
	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)
This commit is contained in:
		
							parent
							
								
									1a0be15d8c
								
							
						
					
					
						commit
						96265d2645
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user