misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli 2019-10-20 19:56:31 +02:00
parent f9cbef9697
commit 6152374024
No known key found for this signature in database
GPG Key ID: 82E42E7F3B34C97E
2 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import logging
import time import time
import pwnagotchi.ui.view as view import pwnagotchi.ui.view as view
version = '1.0.1' version = '1.1.0b'
_name = None _name = None

View File

@ -111,6 +111,10 @@ def install(display, update):
if update['native']: if update['native']:
dest_path = subprocess.getoutput("which %s" % name) dest_path = subprocess.getoutput("which %s" % name)
if dest_path == "":
logging.warning("[update] can't find path for %s" % name)
return
logging.info("[update] installing %s to %s ... TODO" % (source_path, dest_path)) logging.info("[update] installing %s to %s ... TODO" % (source_path, dest_path))
else: else: