Bypass root ownership check by setting JLMKR_DEBUG

This commit is contained in:
jonct 2024-07-14 23:43:42 -04:00
parent 34f2164715
commit 18150bf9ae
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -1463,6 +1463,7 @@ def add_parser(subparser, **kwargs):
def main(): def main():
if os.stat(SCRIPT_PATH).st_uid != 0: if os.stat(SCRIPT_PATH).st_uid != 0:
if os.environ.get('JLMKR_DEBUG') is not None:
fail( fail(
f"This script should be owned by the root user... Fix it manually with: `chown root {SCRIPT_PATH}`." f"This script should be owned by the root user... Fix it manually with: `chown root {SCRIPT_PATH}`."
) )