mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Refactor get_kali() to add create_vm() compatibility
This commit is contained in:
		
							parent
							
								
									723a185346
								
							
						
					
					
						commit
						11aa53d64d
					
				
					 1 changed files with 2 additions and 11 deletions
				
			
		
							
								
								
									
										13
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								quickget
									
										
									
									
									
								
							|  | @ -857,20 +857,11 @@ function get_haiku() { | ||||||
| function get_kali() { | function get_kali() { | ||||||
|     local HASH="" |     local HASH="" | ||||||
|     local ISO="" |     local ISO="" | ||||||
|     local URL="" |     local URL="https://cdimage.kali.org/${RELEASE}" | ||||||
|     local SUBDIR="" |  | ||||||
| 
 | 
 | ||||||
|     case ${RELEASE} in |  | ||||||
|       latest) SUBDIR="current";; |  | ||||||
|       *) SUBDIR="kali-weekly";; |  | ||||||
|     esac |  | ||||||
| 
 |  | ||||||
|     URL="https://cdimage.kali.org/${SUBDIR}" |  | ||||||
|     ISO=$(wget -q -O- "${URL}/?C=M;O=D" | grep -o ">kali-linux-.*-installer-amd64.iso" | head -n 1 | cut -c 2-) |     ISO=$(wget -q -O- "${URL}/?C=M;O=D" | grep -o ">kali-linux-.*-installer-amd64.iso" | head -n 1 | cut -c 2-) | ||||||
|     HASH=$(wget -q -O- "${URL}/SHA256SUMS" | grep -v torrent | grep "${ISO}" | cut -d' ' -f1) |     HASH=$(wget -q -O- "${URL}/SHA256SUMS" | grep -v torrent | grep "${ISO}" | cut -d' ' -f1) | ||||||
|     web_get "${URL}/${ISO}" "${VM_PATH}" |     echo "${URL}/${ISO} ${HASH}" | ||||||
|     check_hash "${ISO}" "${HASH}" |  | ||||||
|     make_vm_config "${ISO}" |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function get_kdeneon() { | function get_kdeneon() { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue