mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 18:25:52 +08:00 
			
		
		
		
	Clarifying install messages, to help with #559 and https://github.com/creationix/nvm/issues/400#issuecomment-71043828
This commit is contained in:
		| @@ -57,7 +57,7 @@ nvm_download() { | |||||||
|  |  | ||||||
| install_nvm_from_git() { | install_nvm_from_git() { | ||||||
|   if [ -d "$NVM_DIR/.git" ]; then |   if [ -d "$NVM_DIR/.git" ]; then | ||||||
|     echo "=> nvm is already installed in $NVM_DIR, trying to update" |     echo "=> nvm is already installed in $NVM_DIR, trying to update using git" | ||||||
|     printf "\r=> " |     printf "\r=> " | ||||||
|     cd "$NVM_DIR" && (command git fetch 2> /dev/null || { |     cd "$NVM_DIR" && (command git fetch 2> /dev/null || { | ||||||
|       echo >&2 "Failed to update nvm, run 'git fetch' in $NVM_DIR yourself." && exit 1 |       echo >&2 "Failed to update nvm, run 'git fetch' in $NVM_DIR yourself." && exit 1 | ||||||
| @@ -82,7 +82,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 [ -d "$NVM_DIR/nvm.sh" ]; then | ||||||
|     echo "=> nvm is already installed in $NVM_DIR, trying to update" |     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'" | ||||||
|   fi |   fi | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user