From b2a333643c96a9e6201cd3d1a05f13e458fe210a Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Tue, 15 Aug 2023 08:07:19 +0200 Subject: [PATCH] Use full path for stat --- jlmkr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jlmkr.py b/jlmkr.py index ef1906b..4ac1ec7 100755 --- a/jlmkr.py +++ b/jlmkr.py @@ -907,7 +907,7 @@ def main(): fail("Run this script as root...") # Set appropriate permissions (if not already set) for this file, since it's executed as root - stat_chmod(SCRIPT_NAME, 0o700) + stat_chmod(SCRIPT_PATH, 0o700) # Work relative to this script os.chdir(SCRIPT_DIR_PATH)