mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Bypass sha1sum/sha1 aliases. Fixes #640.
This commit is contained in:
		
							
								
								
									
										4
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -604,9 +604,9 @@ nvm_ls_remote_iojs() { | ||||
|  | ||||
| nvm_checksum() { | ||||
|   if nvm_has "sha1sum"; then | ||||
|     checksum="$(sha1sum "$1" | command awk '{print $1}')" | ||||
|     checksum="$(command sha1sum "$1" | command awk '{print $1}')" | ||||
|   elif nvm_has "sha1"; then | ||||
|     checksum="$(sha1 -q "$1")" | ||||
|     checksum="$(command sha1 -q "$1")" | ||||
|   else | ||||
|     checksum="$(shasum "$1" | command awk '{print $1}')" | ||||
|   fi | ||||
|   | ||||
		Reference in New Issue
	
	Block a user