From 1c31220a60df540b5120b46d5323e2b4278f13b8 Mon Sep 17 00:00:00 2001 From: gutosie Date: Sun, 6 Mar 2022 15:32:54 +0200 Subject: [PATCH] Update plugin.py --- NeoBoot/plugin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/NeoBoot/plugin.py b/NeoBoot/plugin.py index ef1dfe8..8b53a87 100644 --- a/NeoBoot/plugin.py +++ b/NeoBoot/plugin.py @@ -1129,14 +1129,14 @@ class NeoBootImageChoose(Screen): self.session.open(MessageBox, _('Canceled update.'), MessageBox.TYPE_INFO, 7) def chackupdate3(self): - if fileExists('/usr/bin/fullwget'): - os.system('cd ' + LinkNeoBoot + ';fullwget --no-check-certificate https://raw.githubusercontent.com/gutosie/neoboot/master/ver.txt; sleep 3;cd /') - if not fileExists('' + LinkNeoBoot + '/ver.txt'): - if fileExists('/usr/bin/curl'): + if fileExists('/usr/bin/curl'): os.system('cd ' + LinkNeoBoot + ';curl -O --ftp-ssl https://raw.githubusercontent.com/gutosie/neoboot/master/ver.txt;sleep 3;cd /') if not fileExists('' + LinkNeoBoot + '/ver.txt'): if fileExists('/usr/bin/wget'): os.system('cd ' + LinkNeoBoot + ';wget --no-check-certificate https://raw.githubusercontent.com/gutosie/neoboot/master/ver.txt; sleep 3;cd /') + if not fileExists('' + LinkNeoBoot + '/ver.txt'): + if fileExists('/usr/bin/fullwget'): + os.system('cd ' + LinkNeoBoot + ';fullwget --no-check-certificate https://raw.githubusercontent.com/gutosie/neoboot/master/ver.txt; sleep 3;cd /') if fileExists('' + LinkNeoBoot + '/ver.txt'): mypath = '' version = open('' + LinkNeoBoot + '/ver.txt', 'r')