Merge pull request #27 from Rilliat/master

Fix NO_SUDO
pull/28/head
Who? 2024-11-25 02:33:24 +07:00 committed by GitHub
commit fb324b45db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -26,9 +26,10 @@ if (
print()
print("Type force_insecure to ignore this warning")
print("Type no_sudo if your system has no sudo (Debian vibes)")
if input("> ").lower() != "force_insecure":
inp = input('> ').lower()
if inp != "force_insecure":
sys.exit(1)
elif input("> ").lower() != "no_sudo":
elif inp != "no_sudo":
os.environ["NO_SUDO"] = "1"
print("Added NO_SUDO in your environment variables")
restart()