From c510a744066854820c7924acff78d97dbff831d8 Mon Sep 17 00:00:00 2001 From: liberodark Date: Wed, 18 Dec 2019 14:27:59 +0100 Subject: [PATCH] Rework Remove and Install --- wireguard-install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wireguard-install.sh b/wireguard-install.sh index 26bfa79..57f183a 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -245,6 +245,12 @@ install_wg configure_wg } +arg_remove_wg(){ +# Remove WireGuard +detect_bad +remove_wg +} + parse_args () { while [ $# -ne 0 ] @@ -256,7 +262,7 @@ parse_args () ;; -remove) shift - remove_wg >&2 + arg_remove_wg >&2 ;; -h|--help) usage