mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Remove -e option in install.sh script
				
					
				
			The `sh` actually doesn't support `-e` option.
This commit is contained in:
		| @@ -35,7 +35,7 @@ if [ -z "$PROFILE" ] || [ ! -f "$PROFILE" ] ; then | |||||||
|   fi |   fi | ||||||
|   echo "=> Append the following line to the correct file yourself" |   echo "=> Append the following line to the correct file yourself" | ||||||
|   echo |   echo | ||||||
|   echo -e "\t$SOURCE_STR" |   echo "\t$SOURCE_STR" | ||||||
|   echo |   echo | ||||||
|   echo "=> Close and reopen your terminal to start using NVM" |   echo "=> Close and reopen your terminal to start using NVM" | ||||||
|   exit |   exit | ||||||
| @@ -43,7 +43,7 @@ fi | |||||||
|  |  | ||||||
| if ! grep -qc 'nvm.sh' $PROFILE; then | if ! grep -qc 'nvm.sh' $PROFILE; then | ||||||
|   echo "=> Appending source string to $PROFILE" |   echo "=> Appending source string to $PROFILE" | ||||||
|   echo -e "\n" >> "$PROFILE" |   echo "\n" >> "$PROFILE" | ||||||
|   echo $SOURCE_STR >> "$PROFILE" |   echo $SOURCE_STR >> "$PROFILE" | ||||||
| else | else | ||||||
|   echo "=> Source string already in $PROFILE" |   echo "=> Source string already in $PROFILE" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user