mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Add a check for minimum support Qemu version
This commit is contained in:
		
							parent
							
								
									0332b23b31
								
							
						
					
					
						commit
						943612589b
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		
							
								
								
									
										6
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -569,6 +569,12 @@ if [ ! -e "${QEMU}" ] && [ ! -e "${QEMU_IMG}" ]; then | ||||||
|   exit 1 |   exit 1 | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
|  | QEMU_VER=$(${QEMU} -version | head -n1 | cut -d' ' -f4 | cut -d'(' -f1 | sed 's/\.//g') | ||||||
|  | if [ ${QEMU_VER} -lt 600 ]; then | ||||||
|  |   echo "ERROR! Qemu 6.0.0 is newer is required, detected $(${QEMU} -version | head -n1 | cut -d' ' -f4 | cut -d'(' -f1)." | ||||||
|  |   exit 1 | ||||||
|  | fi | ||||||
|  | 
 | ||||||
| # Take command line arguments | # Take command line arguments | ||||||
| if [ $# -lt 1 ]; then | if [ $# -lt 1 ]; then | ||||||
|     usage |     usage | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue