1
0
mirror of https://github.com/km4ack/patmenu2.git synced 2025-05-21 09:10:10 -07:00

add error check

This commit is contained in:
KM4ACK 2022-08-01 17:00:46 -05:00
parent 1ff0094b78
commit bae91d1aee

View File

@ -36,6 +36,13 @@ do
done
cp $FILE /run/user/$UID/tempgatelist
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 File Found in Inbox"
fi
sed -i '1,17d' /run/user/$UID/tempgatelist
while read -r line; do