mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Fix Linux Mint and NixOS argument parsing
This commit is contained in:
		
							parent
							
								
									90045e8363
								
							
						
					
					
						commit
						7111cb5d7b
					
				
					 1 changed files with 8 additions and 5 deletions
				
			
		
							
								
								
									
										13
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								quickget
									
										
									
									
									
								
							|  | @ -959,9 +959,9 @@ if [ -n "${2}" ]; then | ||||||
|         get_fedora |         get_fedora | ||||||
|     elif [ "${OS}" == "kali" ]; then |     elif [ "${OS}" == "kali" ]; then | ||||||
|         get_kali |         get_kali | ||||||
|     elif [[ "${OS}" == *"linuxmint"* ]]; then |     elif [[ "${OS}" == *"linuxmint-"* ]]; then | ||||||
|         get_linuxmint |         get_linuxmint | ||||||
|     elif [[ "${OS}" == *"nixos"* ]]; then |     elif [[ "${OS}" == *"nixos-"* ]]; then | ||||||
|         get_nixos |         get_nixos | ||||||
|     elif [ "${OS}" == "openbsd" ]; then |     elif [ "${OS}" == "openbsd" ]; then | ||||||
|         get_openbsd |         get_openbsd | ||||||
|  | @ -1005,7 +1005,7 @@ if [ -n "${2}" ]; then | ||||||
|         exit 1 |         exit 1 | ||||||
|     fi |     fi | ||||||
| else | else | ||||||
|     echo "ERROR! You must specify a release for ${OS}:" |     echo -n "ERROR! You must specify a release: " | ||||||
|     if [ "${OS}" == "elementary" ]; then |     if [ "${OS}" == "elementary" ]; then | ||||||
|         releases_elementary |         releases_elementary | ||||||
|     elif [ "${OS}" == "freebsd" ]; then |     elif [ "${OS}" == "freebsd" ]; then | ||||||
|  | @ -1014,9 +1014,9 @@ else | ||||||
|         releases_fedora |         releases_fedora | ||||||
|     elif [ "${OS}" == "kali" ]; then |     elif [ "${OS}" == "kali" ]; then | ||||||
|         releases_kali |         releases_kali | ||||||
|     elif [[ "${OS}" == *"linuxmint"* ]]; then |     elif [[ "${OS}" == *"linuxmint-"* ]]; then | ||||||
|         releases_linuxmint |         releases_linuxmint | ||||||
|     elif [[ "${OS}" == *"nixos"* ]]; then  |     elif [[ "${OS}" == *"nixos-"* ]]; then | ||||||
|         releases_nixos |         releases_nixos | ||||||
|     elif [ "${OS}" == "opensuse" ]; then |     elif [ "${OS}" == "opensuse" ]; then | ||||||
|         releases_opensuse |         releases_opensuse | ||||||
|  | @ -1030,6 +1030,9 @@ else | ||||||
|         releases_ubuntu |         releases_ubuntu | ||||||
|     elif [ "${OS}" == "windows" ]; then |     elif [ "${OS}" == "windows" ]; then | ||||||
|         releases_windows |         releases_windows | ||||||
|  |     else | ||||||
|  |         echo "${OS} is unknown" | ||||||
|  |         os_support | ||||||
|     fi |     fi | ||||||
|     exit 1 |     exit 1 | ||||||
| fi | fi | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue