mirror of
				https://github.com/wting/autojump
				synced 2025-06-13 12:54:07 +00:00 
			
		
		
		
	Remove unnecessary code from install.sh.
In the past the installer would modify the user's ~/.bashrc and thus needed to find the current user's name and home directory. However, the installer no longer modifies user's ~/.bashrc and getent also outputs error messages for Cygwin users.
This commit is contained in:
		
							parent
							
								
									3fdc213149
								
							
						
					
					
						commit
						3f78b56bc7
					
				
							
								
								
									
										10
									
								
								install.sh
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								install.sh
									
									
									
									
									
								
							| @ -41,16 +41,6 @@ else | ||||
|     prefix=~/.autojump | ||||
| fi | ||||
| 
 | ||||
| user=${SUDO_USER:-${USER}} | ||||
| OS=`uname` | ||||
| 
 | ||||
| if [ $OS == 'Darwin' ]; then | ||||
|     user_home=$(dscl . -search /Users UniqueID ${user} | cut -d: -f6) | ||||
| else | ||||
|     user_home=$(getent passwd ${user} | cut -d: -f6) | ||||
| fi | ||||
| bashrc_file=${user_home}/.bashrc | ||||
| 
 | ||||
| # Command line parsing | ||||
| while true; do | ||||
|     case "$1" in | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user