mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Refactor get_nixos()
This commit is contained in:
		
							parent
							
								
									eb23f010aa
								
							
						
					
					
						commit
						fb39f67a5b
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		
							
								
								
									
										6
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								quickget
									
										
									
									
									
								
							|  | @ -1067,11 +1067,11 @@ function get_nixos() { | ||||||
|     local URL="" |     local URL="" | ||||||
| 
 | 
 | ||||||
|     validate_release "releases_nixos" |     validate_release "releases_nixos" | ||||||
|  |     URL="https://channels.nixos.org/nixos-${RELEASE}" | ||||||
|     FLAVOR=$(echo "${OS}" | cut -d'-' -f2) |     FLAVOR=$(echo "${OS}" | cut -d'-' -f2) | ||||||
|     ISO="latest-nixos-${FLAVOR}-x86_64-linux.iso" |     ISO="latest-nixos-${FLAVOR}-x86_64-linux.iso" | ||||||
|     URL="https://channels.nixos.org/nixos-${RELEASE}/${ISO}" |     HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | cut -d' ' -f1) | ||||||
|     HASH=$(wget -q -O- "https://channels.nixos.org/nixos-${RELEASE}/${ISO}.sha256" |  cut -d' ' -f1) |     web_get "${URL}/${ISO}" "${VM_PATH}" | ||||||
|     web_get "${URL}" "${VM_PATH}" |  | ||||||
|     check_hash "${ISO}" "${HASH}" |     check_hash "${ISO}" "${HASH}" | ||||||
|     make_vm_config "${ISO}" |     make_vm_config "${ISO}" | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue