From 811a96200aa2aff9cbd0486e83ef2bd9d1a4b009 Mon Sep 17 00:00:00 2001 From: Teddysun Date: Thu, 2 Apr 2020 23:24:57 +0900 Subject: [PATCH] Update wireguard.sh --- wireguard.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wireguard.sh b/wireguard.sh index d79fdc4..8da29cb 100644 --- a/wireguard.sh +++ b/wireguard.sh @@ -232,6 +232,7 @@ install_wg_module() { get_latest_module_ver wireguard_name="wireguard-linux-compat-$(echo ${wireguard_ver} | grep -oE '[0-9.]+')" wireguard_url="https://github.com/WireGuard/wireguard-linux-compat/archive/${wireguard_ver}.tar.gz" + cd ${cur_dir} _error_detect "wget --no-check-certificate -qO ${wireguard_name}.tar.gz ${wireguard_url}" _error_detect "tar zxf ${wireguard_name}.tar.gz" _error_detect "cd ${wireguard_name}/src" @@ -245,6 +246,7 @@ install_wg_tools() { get_latest_tools_ver wireguard_tools_name="wireguard-tools-$(echo ${wireguard_tools_ver} | grep -oE '[0-9.]+')" wireguard_tools_url="https://github.com/WireGuard/wireguard-tools/archive/${wireguard_tools_ver}.tar.gz" + cd ${cur_dir} _error_detect "wget --no-check-certificate -qO ${wireguard_tools_name}.tar.gz ${wireguard_tools_url}" _error_detect "tar zxf ${wireguard_tools_name}.tar.gz" _error_detect "cd ${wireguard_tools_name}/src"