aboutsummaryrefslogtreecommitdiff
path: root/wireguard-install.sh
diff options
context:
space:
mode:
authorxiagw <fxiaxiaoyu@gmail.com>2020-09-21 14:01:12 +0700
committerGitHub <noreply@github.com>2020-09-21 09:01:12 +0200
commit8cdb0c596885935452ca3cf24f9ec041d07ef4ef (patch)
treeead1503f44a694bbb83c72a54fdae1fe1d1f7d0f /wireguard-install.sh
parent315646ae12e80193a8b9c8d0047ecdcbaaf8a669 (diff)
remove duplicate if -d /etc/debian_version (#136)
Diffstat (limited to 'wireguard-install.sh')
-rw-r--r--wireguard-install.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/wireguard-install.sh b/wireguard-install.sh
index d450d99..c752dbf 100644
--- a/wireguard-install.sh
+++ b/wireguard-install.sh
@@ -31,12 +31,10 @@ function checkOS() {
if [[ -e /etc/debian_version ]]; then
source /etc/os-release
OS="${ID}" # debian or ubuntu
- if [[ -e /etc/debian_version ]]; then
- if [[ ${ID} == "debian" || ${ID} == "raspbian" ]]; then
- if [[ ${VERSION_ID} -ne 10 ]]; then
- echo "Your version of Debian (${VERSION_ID}) is not supported. Please use Debian 10 Buster"
- exit 1
- fi
+ if [[ ${ID} == "debian" || ${ID} == "raspbian" ]]; then
+ if [[ ${VERSION_ID} -ne 10 ]]; then
+ echo "Your version of Debian (${VERSION_ID}) is not supported. Please use Debian 10 Buster"
+ exit 1
fi
fi
elif [[ -e /etc/fedora-release ]]; then