Skip to content

Commit

Permalink
bug with no description prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
nginsburg committed Sep 29, 2020
1 parent 511539a commit ba1a459
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libpkpass/commands/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ def _run_command_execution(self):
else:
password1 = sys.stdin.read()

if 'description' not in self.args:
if 'description' not in self.args or not self.args['description']:
self.args['description'] = input("Description: ")

if 'authorizer' not in self.args:
if 'authorizer' not in self.args or not self.args['authorizer']:
self.args['authorizer'] = input("Authorizer: ")

self.create_or_update_pass(password1, self.args['description'], self.args['authorizer'])
Expand Down
4 changes: 2 additions & 2 deletions libpkpass/commands/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ def _run_command_execution(self):
if safe or self.args['overwrite']:
password = self._generate_pass()

if 'description' not in self.args:
if 'description' not in self.args or not self.args['description']:
self.args['description'] = input("Description: ")

if 'authorizer' not in self.args:
if 'authorizer' not in self.args or not self.args['authorizer']:
self.args['authorizer'] = input("Authorizer: ")

self.create_or_update_pass(password, self.args['description'], self.args['authorizer'])
Expand Down

0 comments on commit ba1a459

Please sign in to comment.