Adds check before running ruby commands
This commit is contained in:
		
							parent
							
								
									ba2b85b2cd
								
							
						
					
					
						commit
						a93a6074e2
					
				
					 1 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
					@ -21,10 +21,12 @@ done
 | 
				
			||||||
export PATH=~/Projects/current/bin:$mypath:$GOPATH/bin:$HOME/.local/share/bin:$PATH:.
 | 
					export PATH=~/Projects/current/bin:$mypath:$GOPATH/bin:$HOME/.local/share/bin:$PATH:.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#Ruby things
 | 
					#Ruby things
 | 
				
			||||||
 | 
					if type -p ruby > /dev/null; then
 | 
				
			||||||
	GEM_HOME=$(ls -t -U | ruby -e 'puts Gem.user_dir')
 | 
						GEM_HOME=$(ls -t -U | ruby -e 'puts Gem.user_dir')
 | 
				
			||||||
	GEM_PATH=$GEM_HOME
 | 
						GEM_PATH=$GEM_HOME
 | 
				
			||||||
	export PATH=$PATH:$GEM_HOME/bin
 | 
						export PATH=$PATH:$GEM_HOME/bin
 | 
				
			||||||
	export GEM_HOME=$(ruby -e 'print Gem.user_dir')
 | 
						export GEM_HOME=$(ruby -e 'print Gem.user_dir')
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export PATH=$PATH:$HOME/node_modules/.bin
 | 
					export PATH=$PATH:$HOME/node_modules/.bin
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue