From b5339300bb10b768d70b531e224e550c16e82193 Mon Sep 17 00:00:00 2001 From: Teddysun Date: Sun, 5 Apr 2020 18:21:50 +0900 Subject: [PATCH] Update wireguard.sh --- wireguard.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wireguard.sh b/wireguard.sh index a3354e7..d6b3ec0 100644 --- a/wireguard.sh +++ b/wireguard.sh @@ -793,12 +793,12 @@ Options: } install_from_repo() { - check_os _is_installed rt=$? if [ ${rt} -eq 0 ]; then _red "WireGuard was already installed\n" && exit 0 fi + check_os if check_kernel_version; then if [ ${rt} -eq 2 ]; then install_wg_3 @@ -817,12 +817,12 @@ install_from_repo() { } install_from_source() { - check_os _is_installed rt=$? if [ ${rt} -eq 0 ]; then _red "WireGuard was already installed\n" && exit 0 fi + check_os if check_kernel_version; then if [ ${rt} -eq 2 ]; then install_wg_4