mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 13:21:19 +08:00 
			
		
		
		
	Revert "Cancel update if the current user doesn't have write permissions for the oh-my-zsh directory."
This reverts commit 152e1e07e0397ecc3f1778ea597d081c33ee8ff4.
This commit is contained in:
		
							parent
							
								
									c9e5adb637
								
							
						
					
					
						commit
						a38af27991
					
				@ -26,13 +26,6 @@ if [ -f ~/.zsh-update ]
 | 
				
			|||||||
then
 | 
					then
 | 
				
			||||||
  . ~/.zsh-update
 | 
					  . ~/.zsh-update
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # cancel update if the current user doesn't have write permissions for the
 | 
					 | 
				
			||||||
  # oh-my-zsh directory
 | 
					 | 
				
			||||||
  if [ -n $(find -not -writable "$ZSH") ]
 | 
					 | 
				
			||||||
  then
 | 
					 | 
				
			||||||
    return 0;
 | 
					 | 
				
			||||||
  fi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  if [[ -z "$LAST_EPOCH" ]]; then
 | 
					  if [[ -z "$LAST_EPOCH" ]]; then
 | 
				
			||||||
    _update_zsh_update && return 0;
 | 
					    _update_zsh_update && return 0;
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user