Skip to content

Commit

Permalink
fixed when typing any key when answering default config
Browse files Browse the repository at this point in the history
  • Loading branch information
gabsbandeira committed Feb 13, 2024
1 parent 11cbbf0 commit d42a81f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions apply-terminator.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,14 @@ def choose_profile():
if profile_answer.lower() in ['', 'default']:
profile_answer = 'default'
else:
copy_default_config_answer = input("Do you want to copy your config from default profile? [Y]: (Y/N) ")
if copy_default_config_answer.lower() in ['', 'yes', 'y']:
copy_default_config_answer = 'yes'
else:
copy_default_config_answer = 'no'
while True:
copy_default_config_answer = input("Do you want to copy your config from default profile? [Y]: (Y/N) ")
if copy_default_config_answer.lower() in ['', 'yes', 'y']:
copy_default_config_answer = 'yes'
break
elif copy_default_config_answer.lower() in ['no', 'n']:
copy_default_config_answer = 'no'
break
return {"profile": profile_answer, "copy_default_config": copy_default_config_answer}


Expand Down

0 comments on commit d42a81f

Please sign in to comment.