mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-05 16:47:14 -04:00
Removed unused code in entry_name_fetch()
Former-commit-id: 047a66dc53042dda37f6825862c2fc14fb3a17cc [formerly 1f2543fe3f]
Former-commit-id: 4bb6fca31988c8ef74a4e4a730f1d25e9b21481d
This commit is contained in:
+3
-5
@@ -95,8 +95,6 @@ def entry_name_fetch(_entry_name_location):
|
|||||||
if type(_entry_name_location) == str:
|
if type(_entry_name_location) == str:
|
||||||
entry_list_gen()
|
entry_list_gen()
|
||||||
_entry_name = str(input(_entry_name_location))
|
_entry_name = str(input(_entry_name_location))
|
||||||
elif _entry_name_location == 0:
|
|
||||||
_entry_name = argument
|
|
||||||
else:
|
else:
|
||||||
_entry_name_split = argument.split(' ')
|
_entry_name_split = argument.split(' ')
|
||||||
del _entry_name_split[:_entry_name_location]
|
del _entry_name_split[:_entry_name_location]
|
||||||
@@ -364,11 +362,11 @@ def no_arg(): # displays a list of entries and gives an option to select one fo
|
|||||||
|
|
||||||
|
|
||||||
def read_shortcut(): # shortcut to quickly read an entry
|
def read_shortcut(): # shortcut to quickly read an entry
|
||||||
if not Path(f"{directory}{argument_list[0].replace('/', '', 1)}.gpg").exists():
|
if not Path(f"{directory}{argument.replace('/', '', 1)}.gpg").exists():
|
||||||
print(f"\n\u001b[38;5;9merror: entry ({argument_list[0].replace('/', '', 1)}) does not exist\u001b[0m\n")
|
print(f"\n\u001b[38;5;9merror: entry ({argument.replace('/', '', 1)}) does not exist\u001b[0m\n")
|
||||||
s_exit(1)
|
s_exit(1)
|
||||||
_shm_folder, _shm_entry = shm_gen()
|
_shm_folder, _shm_entry = shm_gen()
|
||||||
decrypt(directory + argument_list[0].replace('/', '', 1), _shm_folder, _shm_entry, gpg)
|
decrypt(directory + argument.replace('/', '', 1), _shm_folder, _shm_entry, gpg)
|
||||||
entry_reader(f"{tmp_dir}{_shm_folder}/{_shm_entry}")
|
entry_reader(f"{tmp_dir}{_shm_folder}/{_shm_entry}")
|
||||||
rmtree(f"{tmp_dir}{_shm_folder}")
|
rmtree(f"{tmp_dir}{_shm_folder}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user