mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 18:25:52 +08:00 
			
		
		
		
	[Fix: Install] incorrect check for "$NVM_DIR/nvm.sh"
				
					
				
			Should be using `-f` if checking for a file. Closes #887.
This commit is contained in:
		| @@ -89,7 +89,7 @@ install_nvm_as_script() { | |||||||
|  |  | ||||||
|   # Downloading to $NVM_DIR |   # Downloading to $NVM_DIR | ||||||
|   mkdir -p "$NVM_DIR" |   mkdir -p "$NVM_DIR" | ||||||
|   if [ -d "$NVM_DIR/nvm.sh" ]; then |   if [ -f "$NVM_DIR/nvm.sh" ]; then | ||||||
|     echo "=> nvm is already installed in $NVM_DIR, trying to update the script" |     echo "=> nvm is already installed in $NVM_DIR, trying to update the script" | ||||||
|   else |   else | ||||||
|     echo "=> Downloading nvm as script to '$NVM_DIR'" |     echo "=> Downloading nvm as script to '$NVM_DIR'" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user