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