mirror of
				https://github.com/angristan/openvpn-install.git
				synced 2025-10-31 05:57:36 +01:00 
			
		
		
		
	Fix Fedora detection
This commit is contained in:
		| @@ -54,6 +54,9 @@ function checkOS () { | ||||
| 	elif [[ -e /etc/system-release ]]; then | ||||
| 		# shellcheck disable=SC1091 | ||||
| 		source /etc/os-release | ||||
| 		if [[ "$ID" = "fedora" ]]; then | ||||
| 			OS="fedora" | ||||
| 		fi | ||||
| 		if [[ "$ID" = "centos" ]]; then | ||||
| 			OS="centos" | ||||
| 			if [[ ! $VERSION_ID =~ (7|8) ]]; then | ||||
| @@ -74,8 +77,6 @@ function checkOS () { | ||||
| 				exit 1 | ||||
| 			fi | ||||
| 		fi | ||||
| 	elif [[ -e /etc/fedora-release ]]; then | ||||
| 		OS=fedora | ||||
| 	elif [[ -e /etc/arch-release ]]; then | ||||
| 		OS=arch | ||||
| 	else | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 angristan
					angristan