mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Fixed : problem with the generated shell script.
This commit is contained in:
		
							parent
							
								
									aa2c8d0913
								
							
						
					
					
						commit
						ee774d2584
					
				
					 1 changed files with 8 additions and 1 deletions
				
			
		
							
								
								
									
										9
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										9
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -679,8 +679,15 @@ function vm_boot() { | |||
|           ${USB_PASSTHROUGH}) | ||||
|   fi | ||||
| 
 | ||||
|   # The OSK parameter contains parenthesis, they need to be escaped in the shell scripts | ||||
|   # The vendor name, Wimpys World, contains a space. It needs to be double-quoted. | ||||
|   SHELL_ARGS="${args[*]}" | ||||
|   SHELL_ARGS="${SHELL_ARGS//(/\\(}" | ||||
|   SHELL_ARGS="${SHELL_ARGS//)/\\)}" | ||||
|   SHELL_ARGS="${SHELL_ARGS//Wimpys World/\"Wimpys World\"}" | ||||
|    | ||||
|   echo "#!/usr/bin/env bash" > "${VMDIR}/${VMNAME}.sh" | ||||
|   echo "${QEMU}" "${args[@]}" >> "${VMDIR}/${VMNAME}.sh" | ||||
|   echo "${QEMU}" "${SHELL_ARGS}" >> "${VMDIR}/${VMNAME}.sh" | ||||
| 
 | ||||
|   ${QEMU} "${args[@]}" > "${VMDIR}/${VMNAME}.log" & | ||||
|   echo -e " - Process:  On guest: killall ${VMNAME}\t(if a forced kill is required)" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue