Fix NO_SUDO

pull/27/head
Rilliat 2024-11-24 22:31:27 +03:00
parent 6458be92ae
commit 0aa8d5a843
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()