Skip to content

Commit

Permalink
fixed minor suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
suvit committed Oct 28, 2015
1 parent 833b715 commit be2b652
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitpass.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,11 @@ def spawn_interactive_prompt(master_password, our_salt, gh, repo, branch):
password_store = ast.literal_eval(git_pull(gh, repo, branch)) # this is definately unsafe.
if command == "commit":
git_push(gh, repo, branch, data=password_store)
if command == "quit" or command == "exit":
if command in ["quit", "exit"]:
sys.exit("Bye!")

def main():
if os.path.exists(get_config()) != True:
if not os.path.exists(get_config()):
master_password = getpass.getpass("Please enter a master password. You will need to remember this! > ").strip()
if getpass.getpass("Please re-enter your master password to verify > ").strip() != master_password:
sys.exit("Eh. Try again.")
Expand Down

0 comments on commit be2b652

Please sign in to comment.