Skip to content

Commit

Permalink
Added warning form
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbigmdm committed Feb 9, 2024
1 parent 06dbede commit 766c185
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions IMSProg_programmer/other/IMSProg_database_update
Original file line number Diff line number Diff line change
@@ -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}
Expand All @@ -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

1 comment on commit 766c185

@Fantu
Copy link
Collaborator

@Fantu Fantu commented on 766c185 Feb 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bigbigmdm small improvements: ask for override should be if IMSProg.Dat exist in home, if don't exist don't override anything and the ask user for override is not needed

Please sign in to comment.