mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 18:25:52 +08:00 
			
		
		
		
	Compare shell variable contents with a sentinel.
This commit is contained in:
		| @@ -76,14 +76,14 @@ if [ -z "$METHOD" ]; then | |||||||
|     exit 1 |     exit 1 | ||||||
|   fi |   fi | ||||||
| else | else | ||||||
|   if [ "$METHOD" = "git" ]; then |   if [ "~$METHOD" = "~git" ]; then | ||||||
|     if ! nvm_has "git"; then |     if ! nvm_has "git"; then | ||||||
|       echo >&2 "You need git to install nvm" |       echo >&2 "You need git to install nvm" | ||||||
|       exit 1 |       exit 1 | ||||||
|     fi |     fi | ||||||
|     install_nvm_from_git |     install_nvm_from_git | ||||||
|   fi |   fi | ||||||
|   if [ "$METHOD" = "script" ]; then |   if [ "~$METHOD" = "~script" ]; then | ||||||
|     if ! nvm_has "nvm_download"; then |     if ! nvm_has "nvm_download"; then | ||||||
|       echo >&2 "You need curl or wget to install nvm" |       echo >&2 "You need curl or wget to install nvm" | ||||||
|       exit 1 |       exit 1 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user