fehler korriegiert (in grep)
This commit is contained in:
parent
d724746122
commit
f33164dd92
4
wire_g
4
wire_g
@ -99,7 +99,7 @@ remove(){
|
|||||||
if [ "$?" = "0" ]
|
if [ "$?" = "0" ]
|
||||||
then
|
then
|
||||||
nmcli connection delete $selection &> ${wg_wdir}.tmp.txt
|
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" ]
|
if [ "$?" = "0" ]
|
||||||
then
|
then
|
||||||
yad --window-icon=${wg_pic}wg-trash.png \
|
yad --window-icon=${wg_pic}wg-trash.png \
|
||||||
@ -174,7 +174,7 @@ export -f more
|
|||||||
|
|
||||||
connect(){
|
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" ]
|
if [ "$?" = "0" ]
|
||||||
then
|
then
|
||||||
nmcli con mod $selection connection.autoconnect no
|
nmcli con mod $selection connection.autoconnect no
|
||||||
|
Loading…
x
Reference in New Issue
Block a user