updated config while loop to work when secrets files is removed
This commit is contained in:
@@ -396,8 +396,10 @@ if __name__ == "__main__":
|
||||
|
||||
|
||||
if opts.config:
|
||||
while True:
|
||||
if not does_file_exist(secrets_config_file):
|
||||
print("No Bitwarden accounts found, do you want to make a new one?")
|
||||
print(" ")
|
||||
print("n) New account")
|
||||
print("q) Quit config")
|
||||
while True:
|
||||
@@ -410,7 +412,6 @@ if __name__ == "__main__":
|
||||
sys.exit(0)
|
||||
else:
|
||||
print("This value must be one of the following characters: n, q.")
|
||||
while True:
|
||||
accounts = read_config_file(secrets_config_file)
|
||||
print(accounts)
|
||||
print("Current Bitwarden accounts:")
|
||||
|
||||
Reference in New Issue
Block a user