print fixes

This commit is contained in:
Domingo Dirutigliano
2023-04-12 11:07:42 +02:00
committed by GitHub
parent f307ae290c
commit 16af528411

View File

@@ -93,12 +93,12 @@ if start_operation:
psw_set = args.psw_no_interactive psw_set = args.psw_no_interactive
elif not args.startup_psw: elif not args.startup_psw:
while True: while True:
puts("Insert the password for firegex: ", end="" , color=colors.yellow, is_bold=True) puts("Insert the password for firegex: ", end="" , color=colors.yellow, is_bold=True, flush=True)
psw_set = getpass.getpass("") psw_set = getpass.getpass("")
puts("Confirm the password: ", end="" , color=colors.yellow, is_bold=True) puts("Confirm the password: ", end="" , color=colors.yellow, is_bold=True, flush=True)
check = getpass.getpass("") check = getpass.getpass("")
if check != psw_set: if check != psw_set:
puts("Passwords don't match!", end="" , color=colors.yellow, is_bold=True) puts("Passwords don't match!" , color=colors.yellow, is_bold=True, flush=True)
else: else:
break break