Skip to content

Commit

Permalink
v3.1 - See CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xnl-h4ck3r committed Mar 5, 2024
1 parent 18042ff commit 32b6318
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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')

0 comments on commit 32b6318

Please sign in to comment.