From f33164dd92d17583cf53027f50e1ea453b8ee8bc Mon Sep 17 00:00:00 2001 From: punix Date: Wed, 1 Nov 2023 14:27:39 +0100 Subject: [PATCH] fehler korriegiert (in grep) --- wire_g | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wire_g b/wire_g index bb2a2b7..5d04c39 100755 --- a/wire_g +++ b/wire_g @@ -99,7 +99,7 @@ remove(){ if [ "$?" = "0" ] then nmcli connection delete $selection &> ${wg_wdir}.tmp.txt - success=$(grep -i '"erfolgreich gelöscht"\|"successfully deleted"' ${wg_wdir}.tmp.txt) + success=$(grep -i 'erfolgreich gelöscht\|successfully deleted' ${wg_wdir}.tmp.txt) if [ "$?" = "0" ] then yad --window-icon=${wg_pic}wg-trash.png \ @@ -174,7 +174,7 @@ export -f more connect(){ - success=$(grep -i '"erfolgreich aktiviert"\|"successfully activated"' ${wg_wdir}.tmp.txt) + success=$(grep -i 'erfolgreich aktiviert\|successfully activated' ${wg_wdir}.tmp.txt) if [ "$?" = "0" ] then nmcli con mod $selection connection.autoconnect no