From 40c01db1d127c9dd5d20aee3f15b41a5b5ab0e2f Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Sun, 20 Oct 2019 18:08:14 +0200 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- pwnagotchi/plugins/default/auto-update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnagotchi/plugins/default/auto-update.py b/pwnagotchi/plugins/default/auto-update.py index 90178031..153cbebd 100644 --- a/pwnagotchi/plugins/default/auto-update.py +++ b/pwnagotchi/plugins/default/auto-update.py @@ -82,7 +82,7 @@ def on_internet_available(agent): if info['url'] is not None: to_install.append(info) - if len(to_install) > 0 & & OPTIONS['install']: + if len(to_install) > 0 and OPTIONS['install']: logging.info("[update] TODO: install %d updates" % len(to_install)) logging.info("[update] done")