From a2e29d64d29b8c437ea8f3f5ed1a2ba23d80bb45 Mon Sep 17 00:00:00 2001 From: dadav <33197631+dadav@users.noreply.github.com> Date: Sun, 19 Apr 2020 11:39:49 +0200 Subject: [PATCH] dont overwrite zips --- pwnagotchi/plugins/cmd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwnagotchi/plugins/cmd.py b/pwnagotchi/plugins/cmd.py index d679b07..eb87cb9 100644 --- a/pwnagotchi/plugins/cmd.py +++ b/pwnagotchi/plugins/cmd.py @@ -359,8 +359,8 @@ def update(config): return 1 rc = 0 - DEST = os.path.join(SAVE_DIR, 'plugins.zip') - for REPO_URL in urls: + for idx, REPO_URL in enumerate(urls): + DEST = os.path.join(SAVE_DIR, 'plugins%d.zip' % idx) logging.info('Downloading plugins from %s to %s', REPO_URL, DEST) try: