mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Update usage() to keep variables in the local scope
This commit is contained in:
		
							parent
							
								
									ce43eb55b1
								
							
						
					
					
						commit
						2f8ebe795e
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -1,6 +1,5 @@ | |||
| #!/usr/bin/env bash | ||||
| 
 | ||||
| LAUNCHER=$(basename $0 .sh) | ||||
| allcores=$(nproc --all) | ||||
| if [ ${allcores} -ge 8 ]; then | ||||
|   cores="4" | ||||
|  | @ -138,6 +137,7 @@ function vm_boot() { | |||
| } | ||||
| 
 | ||||
| function usage() { | ||||
|   local LAUNCHER=$(basename $0) | ||||
|   echo | ||||
|   echo "Usage" | ||||
|   echo "  ${LAUNCHER} --vm ubuntu.conf" | ||||
|  | @ -145,7 +145,6 @@ function usage() { | |||
|   echo "You can also pass optional parameters" | ||||
|   echo "  --delete   : Delete the disk image." | ||||
|   echo "  --efi      : Enable EFI BIOS (experimental)." | ||||
|   echo "  --legacy   : Enable legacy BIOS (default)." | ||||
|   echo "  --restore  : Restore the snapshot." | ||||
|   echo "  --snapshot : Create a disk snapshot." | ||||
|   echo "  --virgil   : Use virgil, if available." | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue