diff --git a/wire_g b/wire_g index 4f9e641..17967dc 100755 --- a/wire_g +++ b/wire_g @@ -84,10 +84,10 @@ import_wg(){ if [[ -n $active ]] then wg_stop - nmcli connection import type wireguard file $wgconf > ${wg_wdir}.tmp.txt + nmcli connection import type wireguard file $wgconf 2> ${wg_wdir}.tmp.txt wg_notify else - nmcli connection import type wireguard file $wgconf > ${wg_wdir}.tmp.txt + nmcli connection import type wireguard file $wgconf 2> ${wg_wdir}.tmp.txt wg_notify fi fi }