From 61523740247c16d28ce42a7891051a8def97427c Mon Sep 17 00:00:00 2001 From: Simone Margaritelli <evilsocket@gmail.com> Date: Sun, 20 Oct 2019 19:56:31 +0200 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- pwnagotchi/__init__.py | 2 +- pwnagotchi/plugins/default/auto-update.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pwnagotchi/__init__.py b/pwnagotchi/__init__.py index 14737d5..caa4bc9 100644 --- a/pwnagotchi/__init__.py +++ b/pwnagotchi/__init__.py @@ -4,7 +4,7 @@ import logging import time import pwnagotchi.ui.view as view -version = '1.0.1' +version = '1.1.0b' _name = None diff --git a/pwnagotchi/plugins/default/auto-update.py b/pwnagotchi/plugins/default/auto-update.py index eaa7396..b172e97 100644 --- a/pwnagotchi/plugins/default/auto-update.py +++ b/pwnagotchi/plugins/default/auto-update.py @@ -111,6 +111,10 @@ def install(display, update): if update['native']: 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)) else: