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