From 32b631899b062f3fd82d8882a80866f101a96ed8 Mon Sep 17 00:00:00 2001 From: /XNL-h4ck3r Date: Tue, 5 Mar 2024 13:10:02 +0000 Subject: [PATCH] v3.1 - See CHANGELOG.md --- README.md | 2 +- setup.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5d0228c..43b02fb 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ This was inspired by the ["knoxssme" tool](https://github.com/edoardottt/lit-bb- Install `knoxnl` in default(global) python environment. ```bash -pip install git+https://github.com/xnl-h4ck3r/knoxnl.git +pip install git+https://github.com/xnl-h4ck3r/knoxnl.git -v ``` ### pipx diff --git a/setup.py b/setup.py index bd38ef2..e13aa59 100644 --- a/setup.py +++ b/setup.py @@ -18,11 +18,13 @@ os.makedirs(target_directory, exist_ok=True) # If file already exists, create a new one if os.path.isfile(target_directory+'/config.yml'): + configNew = True os.rename(target_directory+'/config.yml',target_directory+'/config.yml.OLD') shutil.copy("config.yml", target_directory) os.rename(target_directory+'/config.yml',target_directory+'/config.yml.NEW') os.rename(target_directory+'/config.yml.OLD',target_directory+'/config.yml') else: + configNew = False shutil.copy("config.yml", target_directory) setup( @@ -42,3 +44,6 @@ ], }, ) + +if configNew: + print('\nIMPORTANT: The file '+target_directory+'/config.yml already exists.\nCreating config.yml.NEW but leaving existing config.\nIf you need the new file, then remove the current one and rename config.yml.NEW to config.yml\n') \ No newline at end of file