From 18fb956251fa9c425dba28e686f00a4ed127d2ed Mon Sep 17 00:00:00 2001 From: jayofelony Date: Sat, 23 Mar 2024 09:46:32 +0100 Subject: [PATCH] Update setup.py Signed-off-by: jayofelony --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c9ba4ddb..fb183b9f 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,10 @@ log = logging.getLogger(__name__) def install_file(source_filename, dest_filename): # do not overwrite network configuration if it exists already # https://github.com/evilsocket/pwnagotchi/issues/483 - if dest_filename.startswith('/etc/network/interfaces.d/') and dest_filename.startswith('/root/') and os.path.exists(dest_filename): + if dest_filename.startswith('/etc/network/interfaces.d/') and os.path.exists(dest_filename): + log.info(f"{dest_filename} exists, skipping ...") + return + elif dest_filename.startswith('/root/') and os.path.exists(dest_filename): log.info(f"{dest_filename} exists, skipping ...") return