1
0
mirror of https://github.com/km4ack/patmenu2.git synced 2025-05-29 13:00:11 -07:00

add exits

This commit is contained in:
KM4ACK 2022-08-01 17:07:29 -05:00
parent 158050b82d
commit c1e1f46892

View File

@ -18,7 +18,8 @@ yad --form --width=500 --text-align=center --center --title="WL2K to ARPS Object
BUT=$?
if [ $BUT = 1 ]; then
MAIN
MAIN &
exit
elif [ $BUT = 252 ]; then
exit
fi
@ -44,7 +45,8 @@ if [ $? = 1 ]; then
yad --form --width=500 --text-align=center --center --title="WL2K to ARPS Object" --text-align=center \
--image ${LOGO} --window-icon=${LOGO} --image-on-top --separator="|" --item-separator="|" \
--text="<b>FAILED</b>\rNo Nearby (WL2K_NEARBY) File Found in Inbox"
MAIN
MAIN &
exit
fi
sed -i '1,17d' /run/user/$UID/tempgatelist
@ -66,6 +68,7 @@ yad --form --width=500 --text-align=center --center --title="WL2K to ARPS Object
--text="<b>Processing done.</b>\rA gateways.pos file has been created and\r is on your desktop ready to import into YAAC."
#rm /run/user/$UID/tempgatelist
MAIN &
exit