From 5da754df62de5041b0477db6e8c114e757f65b54 Mon Sep 17 00:00:00 2001 From: punix Date: Sun, 19 Nov 2023 11:21:45 +0100 Subject: [PATCH] fix about --- wire_g | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/wire_g b/wire_g index 3554137..c992da4 100755 --- a/wire_g +++ b/wire_g @@ -184,7 +184,8 @@ up_or_down(){ # function button "about" about(){ - if AUTOSTART=$(grep 'TRUE TRUE' ${WG_WDIR}about.txt) + + if grep 'TRUE TRUE' ${WG_WDIR}about.txt then yad --form --fixed \ --borders=8 --buttons-layout=center --text-align=center \ @@ -200,7 +201,7 @@ about(){ Use without warranty. \n Download Wire-G \n" &> ${WG_WDIR}about.txt - if AUTOSTART=$(grep 'FALSE TRUE' ${WG_WDIR}about.txt) + elif grep 'FALSE TRUE' ${WG_WDIR}about.txt then yad --form --fixed \ --borders=8 --buttons-layout=center --text-align=center \ @@ -216,7 +217,7 @@ about(){ Use without warranty. \n Download Wire-G \n" &> ${WG_WDIR}about.txt - if AUTOSTART=$(grep 'FALSE FALSE' ${WG_WDIR}about.txt) + elif grep 'FALSE FALSE' ${WG_WDIR}about.txt then yad --form --fixed \ --borders=8 --buttons-layout=center --text-align=center \ @@ -232,7 +233,7 @@ about(){ Use without warranty. \n Download Wire-G \n" &> ${WG_WDIR}about.txt - if AUTOSTART=$(grep 'TRUE FALSE' ${WG_WDIR}about.txt) + elif grep 'TRUE FALSE' ${WG_WDIR}about.txt then yad --form --fixed \ --borders=8 --buttons-layout=center --text-align=center \ @@ -248,6 +249,8 @@ about(){ Use without warranty. \n Download Wire-G \n" &> ${WG_WDIR}about.txt +fi + } # function end