Skip to content

Commit

Permalink
Remove unnecessary plugin warning
Browse files Browse the repository at this point in the history
  • Loading branch information
d3lb3 committed Dec 12, 2024
1 parent 59a2ebf commit a52ced3
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions keepwn/core/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,9 @@ def add_plugin(options):

if found_plugin:
print_warning("Plugin already added to KeePass Plugin directory, do you want to overwrite? [y/n]".format(plugin_file))
else:
print_warning("About to add {} to KeePass Plugins directory, do you want to continue? [y/n]".format(plugin_file))
ans = input('> ')
if ans.lower() not in ['y', 'yes', '']:
exit(0)
ans = input('> ')
if ans.lower() not in ['y', 'yes', '']:
exit(0)

fh = open(options.plugin, 'rb')
try:
Expand Down Expand Up @@ -204,11 +202,6 @@ def clean_plugin(options):
if not found_plugin:
print_warning("Plugin not found in KeePass Plugin directory, aborting deletion".format(plugin_file))
exit()
else:
print_warning("About to remove {} from KeePass Plugin directory, do you want to continue [y/n]".format(plugin_file))
ans = input('> ')
if ans.lower() not in ['y', 'yes', '']:
exit(0)

try:
smb_connection.deleteFile(share, ntpath.join(plugin_folder_path, plugin_file))
Expand Down

0 comments on commit a52ced3

Please sign in to comment.