mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Removing unnecessary cleanup in "Listing Versions" tests.
This commit is contained in:
		| @@ -1,7 +1,6 @@ | |||||||
| #!/bin/sh | #!/bin/sh | ||||||
|  |  | ||||||
| cleanup () { unset -f nvm_has_system_node; } | die () { echo $@ ; exit 1; } | ||||||
| die () { cleanup ; echo $@ ; exit 1; } |  | ||||||
|  |  | ||||||
| . ../../../nvm.sh | . ../../../nvm.sh | ||||||
|  |  | ||||||
|   | |||||||
| @@ -2,13 +2,10 @@ | |||||||
|  |  | ||||||
| mkdir ../../../v0.1.3 | mkdir ../../../v0.1.3 | ||||||
| mkdir ../../../v0.2.3 | mkdir ../../../v0.2.3 | ||||||
|  | mkdir ../../../versions | ||||||
|  |  | ||||||
| . ../../../nvm.sh | . ../../../nvm.sh | ||||||
|  |  | ||||||
| mkdir ../../../versions |  | ||||||
|  |  | ||||||
| [ -z "$(nvm ls | \grep 'versions')" ] | [ -z "$(nvm ls | \grep 'versions')" ] | ||||||
| # The result should contain only the appropriate version numbers. | # The result should contain only the appropriate version numbers. | ||||||
|  |  | ||||||
| rmdir ../../../versions |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user