mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Fix Ubuntu Canary support
This commit is contained in:
		
							parent
							
								
									60641a4b62
								
							
						
					
					
						commit
						70c2930336
					
				
					 1 changed files with 10 additions and 7 deletions
				
			
		
							
								
								
									
										17
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										17
									
								
								quickget
									
										
									
									
									
								
							|  | @ -853,14 +853,17 @@ function get_ubuntu() { | ||||||
|          exit 1;; |          exit 1;; | ||||||
|     esac |     esac | ||||||
| 
 | 
 | ||||||
|     validate_release "releases_ubuntu" |     if [ "${RELEASE}" == "canary" ] && [ "${OS}" != "ubuntu" ]; then | ||||||
| 
 |       echo "ERROR! Canary is currently only available for Ubuntu." | ||||||
|     if [ "${RELEASE}" == "canary" ]; then |       exit 1 | ||||||
|         RELEASE="devel" |     else | ||||||
|         DEVEL="daily-canary" |       validate_release "releases_ubuntu" | ||||||
|     fi |     fi | ||||||
| 
 | 
 | ||||||
|     if [ "${RELEASE}" == "devel" ]; then |     if [ "${RELEASE}" == "canary" ]; then | ||||||
|  |         DEVEL="daily-canary" | ||||||
|  |         URL="http://cdimage.ubuntu.com/${PROJECT}/${DEVEL}/current" | ||||||
|  |     elif [ "${RELEASE}" == "devel" ]; then | ||||||
|         URL="http://cdimage.ubuntu.com/${PROJECT}/${DEVEL}/current" |         URL="http://cdimage.ubuntu.com/${PROJECT}/${DEVEL}/current" | ||||||
|     elif [ "${PROJECT}" == "ubuntu" ]; then |     elif [ "${PROJECT}" == "ubuntu" ]; then | ||||||
|         URL="http://releases.ubuntu.com/${RELEASE}" |         URL="http://releases.ubuntu.com/${RELEASE}" | ||||||
|  | @ -870,7 +873,7 @@ function get_ubuntu() { | ||||||
| 
 | 
 | ||||||
|     HASH=$(wget -q -O- "${URL}/SHA256SUMS" | cut -d' ' -f1) |     HASH=$(wget -q -O- "${URL}/SHA256SUMS" | cut -d' ' -f1) | ||||||
|     ISO=$(wget -q -O- "${URL}/SHA256SUMS" | grep 'desktop\|dvd' | grep amd64 | cut -d' ' -f2 | sed 's|*||g') |     ISO=$(wget -q -O- "${URL}/SHA256SUMS" | grep 'desktop\|dvd' | grep amd64 | cut -d' ' -f2 | sed 's|*||g') | ||||||
|     if [ "${RELEASE}" == "devel" ]; then |     if [ "${RELEASE}" == "canary" ] || [ "${RELEASE}" == "devel" ]; then | ||||||
|         zsync_get "${URL}/${ISO}" "${VM_PATH}" "${OS}-${RELEASE}.iso" |         zsync_get "${URL}/${ISO}" "${VM_PATH}" "${OS}-${RELEASE}.iso" | ||||||
|         make_vm_config "${OS}-${RELEASE}.iso" |         make_vm_config "${OS}-${RELEASE}.iso" | ||||||
|     else |     else | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue