From a4e072cf3362361610e72f8fe123ea4f594332b2 Mon Sep 17 00:00:00 2001
From: Simone Margaritelli <evilsocket@gmail.com>
Date: Sun, 20 Oct 2019 19:22:04 +0200
Subject: [PATCH] misc: small fix or general refactoring i did not bother
 commenting

---
 pwnagotchi/plugins/default/auto-update.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/pwnagotchi/plugins/default/auto-update.py b/pwnagotchi/plugins/default/auto-update.py
index ebf84ec..6580377 100644
--- a/pwnagotchi/plugins/default/auto-update.py
+++ b/pwnagotchi/plugins/default/auto-update.py
@@ -71,10 +71,11 @@ def install(display, update):
     os.makedirs(path)
 
     target = "%s_%s.zip" % (name, update['available'])
+    target_path = os.path.join(path, target)
 
-    logging.info("[update] downloading %s to %s ..." % (update['url'], target))
+    logging.info("[update] downloading %s to %s ..." % (update['url'], target_path))
 
-    os.system("wget '%s' -O '%s'" % (update['url'], target))
+    os.system('wget -q "%s" -O "%s"' % (update['url'], target_path))
 
 
 def on_internet_available(agent):