mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
@ -99,7 +99,7 @@ def install(display, update):
|
|||||||
logging.info("[update] verifying %s for %s ..." % (checksum, source_path))
|
logging.info("[update] verifying %s for %s ..." % (checksum, source_path))
|
||||||
|
|
||||||
with open(checksum, 'rt') as fp:
|
with open(checksum, 'rt') as fp:
|
||||||
expected = fp.read().strip().lower()
|
expected = fp.read().split('=')[1].strip().lower()
|
||||||
|
|
||||||
real = subprocess.getoutput('sha256sum "%s"' % source_path).split(' ')[0].strip().lower()
|
real = subprocess.getoutput('sha256sum "%s"' % source_path).split(' ')[0].strip().lower()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user