From 766c185381e977a454559979a4f7e814db6e5ed1 Mon Sep 17 00:00:00 2001 From: Mikhail Medvedev Date: Fri, 9 Feb 2024 09:57:30 +0300 Subject: [PATCH] Added warning form --- IMSProg_programmer/other/IMSProg_database_update | 6 ++++++ 1 file changed, 6 insertions(+) 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 +