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:
|
if opts.config:
|
||||||
|
while True:
|
||||||
if not does_file_exist(secrets_config_file):
|
if not does_file_exist(secrets_config_file):
|
||||||
print("No Bitwarden accounts found, do you want to make a new one?")
|
print("No Bitwarden accounts found, do you want to make a new one?")
|
||||||
|
print(" ")
|
||||||
print("n) New account")
|
print("n) New account")
|
||||||
print("q) Quit config")
|
print("q) Quit config")
|
||||||
while True:
|
while True:
|
||||||
@@ -410,7 +412,6 @@ if __name__ == "__main__":
|
|||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
else:
|
else:
|
||||||
print("This value must be one of the following characters: n, q.")
|
print("This value must be one of the following characters: n, q.")
|
||||||
while True:
|
|
||||||
accounts = read_config_file(secrets_config_file)
|
accounts = read_config_file(secrets_config_file)
|
||||||
print(accounts)
|
print(accounts)
|
||||||
print("Current Bitwarden accounts:")
|
print("Current Bitwarden accounts:")
|
||||||
|
|||||||
Reference in New Issue
Block a user