Skip to content

Commit

Permalink
If the IMSProg.Dat file does not exist in HOME, no message will be di…
Browse files Browse the repository at this point in the history
…splayed
  • Loading branch information
bigbigmdm committed Feb 9, 2024
1 parent 53642ad commit 4c5c63e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IMSProg_programmer/other/IMSProg_database_update
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash
if [ -f ~/.local/share/imsprog/IMSProg.Dat ] ; then
zenity --question --text="The IMSProg.Dat file will be replaced with the new version. You may lose the changes made to it. Continue?" --ok-label="Yes" --cancel-label="No"
fi
if [ $? = 0 ] ; then
IMSPROG_DB_URL=https://antenna-dvb-t2.ru/dl_all/IMSProg.Dat
cd /tmp
Expand All @@ -20,6 +22,4 @@ zenity --warning \
--title="Database update" \
--icon-name='applications-electronics'
fi
else
fi

0 comments on commit 4c5c63e

Please sign in to comment.