mirror of
				https://github.com/wting/autojump
				synced 2025-06-13 12:54:07 +00:00 
			
		
		
		
	Add existence test for installed profile.d bash setup.
This commit is contained in:
		
							parent
							
								
									34419c3eae
								
							
						
					
					
						commit
						39f4c1b6fb
					
				@ -60,7 +60,9 @@ if [ -d "/etc/profile.d" ]; then
 | 
				
			|||||||
        echo "Adding the /etc/profile.d/autojump.bash to your .bashrc"
 | 
					        echo "Adding the /etc/profile.d/autojump.bash to your .bashrc"
 | 
				
			||||||
        echo "" >> ~/.bashrc
 | 
					        echo "" >> ~/.bashrc
 | 
				
			||||||
        echo "# Added by autojump install.sh" >> ~/.bashrc
 | 
					        echo "# Added by autojump install.sh" >> ~/.bashrc
 | 
				
			||||||
        echo "source /etc/profile.d/autojump.bash" >> ~/.bashrc
 | 
					        echo "if [ -f /etc/profile.d/autojump.bash ]; then" >> ~/.bashrc
 | 
				
			||||||
 | 
					        echo "    source /etc/profile.d/autojump.bash" >> ~/.bashrc
 | 
				
			||||||
 | 
					        echo "fi" >> ~/.bashrc
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
    echo "Done!"
 | 
					    echo "Done!"
 | 
				
			||||||
    echo
 | 
					    echo
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user