From 5d902f03245063ac3357da7ba08721026831bc65 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Mon, 20 Jun 2022 03:15:08 -0400 Subject: [PATCH] Fixed error when generating a new password entry with no additional arguments Former-commit-id: 642e7756a42374eac08df6ce1ec2ac37a803a2ce [formerly 45ee9ff40b2ef06c85b6c01ec15202fa2afd0f3e] Former-commit-id: b5e1a2cca9be722ae40e5a8b6b2431251344daac --- bin/sshyp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sshyp b/bin/sshyp index 03e3d3e..17d9cd8 100755 --- a/bin/sshyp +++ b/bin/sshyp @@ -545,7 +545,7 @@ def gen(): # generates a password for a new or an existing entry s_exit(1) _username = str(input('username: ')) _password = pass_gen() - if len(argument_list) > 1 and (not argument_list[1] == 'update' and not argument_list[1] == '-u'): + if len(argument_list) == 1 or (not argument_list[1] == 'update' and not argument_list[1] == '-u'): _url = str(input('url: ')) _add_note = input('add a note to this entry? (y/N) ') _shm_folder, _shm_entry = shm_gen()