mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	[Improvement] Use nvm_sanitize_path in nvm_check_file_permissions.
				
					
				
			This commit is contained in:
		
							
								
								
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -1964,7 +1964,7 @@ nvm() { | |||||||
|         nvm_err 'Cannot uninstall, incorrect permissions on installation folder.' |         nvm_err 'Cannot uninstall, incorrect permissions on installation folder.' | ||||||
|         nvm_err 'This is usually caused by running `npm install -g` as root. Run the following command as root to fix the permissions and then try again.' |         nvm_err 'This is usually caused by running `npm install -g` as root. Run the following command as root to fix the permissions and then try again.' | ||||||
|         nvm_err |         nvm_err | ||||||
|         nvm_err "  chown -R $(whoami) \"$VERSION_PATH\"" |         nvm_err "  chown -R $(whoami) \"$(nvm_sanitize_path "$VERSION_PATH")\"" | ||||||
|         return 1 |         return 1 | ||||||
|       fi |       fi | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user