Skip to content

Commit

Permalink
Merge pull request #192 from nvllsvm/noinput
Browse files Browse the repository at this point in the history
Disable "press enter" prompt when not a terminal
  • Loading branch information
nicoboss authored Dec 12, 2024
2 parents f257c06 + d707ccf commit e7f58c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nsz/nut/Keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def load(fileName):
else:
errorMsg = "{0} or {1} not found!\nPlease dump your keys using https://github.com/shchmue/Lockpick_RCM/releases".format(str(keypath), str(dumpedKeys))
Print.error(errorMsg)
input("Press Enter to exit...")
if sys.stdin.isatty() and sys.stdout.isatty():
input("Press Enter to exit...")
sys.exit(1)

0 comments on commit e7f58c0

Please sign in to comment.