mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-11-24 05:56:02 +03:00
remove duplicate if -d /etc/debian_version (#136)
This commit is contained in:
parent
315646ae12
commit
8cdb0c5968
@ -31,12 +31,10 @@ function checkOS() {
|
|||||||
if [[ -e /etc/debian_version ]]; then
|
if [[ -e /etc/debian_version ]]; then
|
||||||
source /etc/os-release
|
source /etc/os-release
|
||||||
OS="${ID}" # debian or ubuntu
|
OS="${ID}" # debian or ubuntu
|
||||||
if [[ -e /etc/debian_version ]]; then
|
if [[ ${ID} == "debian" || ${ID} == "raspbian" ]]; then
|
||||||
if [[ ${ID} == "debian" || ${ID} == "raspbian" ]]; then
|
if [[ ${VERSION_ID} -ne 10 ]]; then
|
||||||
if [[ ${VERSION_ID} -ne 10 ]]; then
|
echo "Your version of Debian (${VERSION_ID}) is not supported. Please use Debian 10 Buster"
|
||||||
echo "Your version of Debian (${VERSION_ID}) is not supported. Please use Debian 10 Buster"
|
exit 1
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
elif [[ -e /etc/fedora-release ]]; then
|
elif [[ -e /etc/fedora-release ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user