mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 13:07:13 +00:00 
			
		
		
		
	more alias tests
This commit is contained in:
		
							parent
							
								
									200688644a
								
							
						
					
					
						commit
						c6bad42e83
					
				
							
								
								
									
										0
									
								
								test/fast/deactivate
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										0
									
								
								test/fast/deactivate
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
								
								
									
										4
									
								
								test/fast/multiple_aliases/all
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										4
									
								
								test/fast/multiple_aliases/all
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,4 @@ | ||||
| #!/bin/sh | ||||
| 
 | ||||
| . ../../../nvm.sh | ||||
| [ $(nvm alias | wc -l) = '10' ] | ||||
							
								
								
									
										6
									
								
								test/fast/multiple_aliases/setup_dir
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										6
									
								
								test/fast/multiple_aliases/setup_dir
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,6 @@ | ||||
| #!/bin/sh | ||||
| 
 | ||||
| for i in $(seq 1 10) | ||||
|   do | ||||
|   echo v0.0.$i > ../../../alias/test$i | ||||
| done | ||||
							
								
								
									
										4
									
								
								test/fast/multiple_aliases/some
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										4
									
								
								test/fast/multiple_aliases/some
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,4 @@ | ||||
| #!/bin/sh | ||||
| 
 | ||||
| . ../../../nvm.sh | ||||
| [ $(nvm alias test1 | wc -l) = '2' ] | ||||
| @ -1,5 +1,4 @@ | ||||
| #!/bin/sh | ||||
| set -e | ||||
| 
 | ||||
| ( | ||||
|   cd ../.. | ||||
| @ -7,4 +6,5 @@ set -e | ||||
|   # Back up | ||||
|   mkdir -p bak | ||||
|   mv v* src alias bak || sleep 0s | ||||
|   mkdir src alias | ||||
| ) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Thomas Levine
						Thomas Levine