From bb137e3ba47079fd71795dabace324ba6b5b9601 Mon Sep 17 00:00:00 2001 From: punix Date: Tue, 14 Nov 2023 09:17:54 +0100 Subject: [PATCH] kill fix --- .tmp.txt | 1 - wire_g | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 .tmp.txt diff --git a/.tmp.txt b/.tmp.txt deleted file mode 100644 index d06462a..0000000 --- a/.tmp.txt +++ /dev/null @@ -1 +0,0 @@ -Fehler: weder eine gültige Verbindung noch ein Gerät angegeben. diff --git a/wire_g b/wire_g index 33af434..fff982d 100755 --- a/wire_g +++ b/wire_g @@ -246,12 +246,12 @@ if selection=$(yad --no-klick --list --center \ nmcli connection up $selection &> ${wg_wdir}.tmp.txt connect pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}') - kill -n $pid + kill "$pid" else nmcli connection up $selection &> ${wg_wdir}.tmp.txt connect pid=$(ps aux | grep yad | grep -v grep | awk '{print $2}') - kill -n $pid + kill "$pid" fi fi