From 6d5054387bb00a1d4480f870a8054fec6ed6c101 Mon Sep 17 00:00:00 2001
From: Simone Margaritelli <evilsocket@gmail.com>
Date: Sun, 20 Oct 2019 19:48:52 +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 6450ed0..e78e67c 100644
--- a/pwnagotchi/plugins/default/auto-update.py
+++ b/pwnagotchi/plugins/default/auto-update.py
@@ -85,7 +85,7 @@ def install(display, update):
     os.system('unzip "%s" -d "%s"' % (target_path, path))
 
     source_path = os.path.join(path, name)
-    checksums = glob.glob("%s/*.sha256")
+    checksums = glob.glob("%s/*.sha256" % path)
     if len(checksums) == 0:
         if update['native']:
             logging.warning("native update without SHA256 checksum file")