mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 13:21:19 +08:00 
			
		
		
		
	update: only update on a valid affirmative input (#9062)
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
This commit is contained in:
		
							parent
							
								
									6152ac30be
								
							
						
					
					
						commit
						48b98b957e
					
				@ -79,8 +79,8 @@ function update_ohmyzsh() {
 | 
			
		||||
        read -r -k 1 option
 | 
			
		||||
        [[ "$option" != $'\n' ]] && echo
 | 
			
		||||
        case "$option" in
 | 
			
		||||
            [yY$'\n']) update_ohmyzsh ;;
 | 
			
		||||
            [nN]) update_last-updated_file ;;
 | 
			
		||||
            *) update_ohmyzsh ;;
 | 
			
		||||
        esac
 | 
			
		||||
    fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user