diff --git a/IMSProg_programmer/other/IMSProg_database_update b/IMSProg_programmer/other/IMSProg_database_update index f68d328..259a360 100755 --- a/IMSProg_programmer/other/IMSProg_database_update +++ b/IMSProg_programmer/other/IMSProg_database_update @@ -1,4 +1,6 @@ #!/bin/bash +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" +if [ $? = 0 ] ; then IMSPROG_DB_URL=https://antenna-dvb-t2.ru/dl_all/IMSProg.Dat cd /tmp wget ${IMSPROG_DB_URL} @@ -17,3 +19,7 @@ zenity --warning \ --text="The number of chips in the database:\n\n$out_text" \ --title="Database update" \ --icon-name='applications-electronics' +fi +else +fi +