Skip to content

Commit

Permalink
Merge pull request bongtrop#1 from utpk/patch-1
Browse files Browse the repository at this point in the history
improve yes or no input handling
  • Loading branch information
ErbaZZ authored Jan 11, 2021
2 parents 1bd94f6 + 932eaca commit b21b4bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hbctool/hasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def write_func(f, func, i, hbc):
def dump(hbc, path, force=False):

if os.path.exists(path) and not force:
c = input(f"'{path}' exists. Do you want to remove it ? (y/n): ").strip()
if c == "y":
c = input(f"'{path}' exists. Do you want to remove it ? (y/n): ").lower().strip()
if c[:1] == "y":
shutil.rmtree(path)
else:
exit(1337)
Expand Down

0 comments on commit b21b4bd

Please sign in to comment.