From f54ef3031671197a2700c7232b5f9c0470e313d0 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Wed, 3 Jun 2026 14:27:43 +0300 Subject: [PATCH] Only set permissions for current user's files in main dir --- run_release.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run_release.py b/run_release.py index b7cfe0e3..88df91ee 100755 --- a/run_release.py +++ b/run_release.py @@ -822,7 +822,8 @@ def copy_and_set_permissions(source_glob: str, destination: str) -> None: f"find {destination} -maxdepth 0 ! -perm 775 -exec chmod 775 {{}} +" ) execute_command( - f"find {destination} -type f ! -perm 664 -exec chmod 664 {{}} +" + f"find {destination} -maxdepth 1 -type f -user $USER ! -perm 664 " + f"-exec chmod 664 {{}} +" ) copy_and_set_permissions(f"{source}/downloads/*", destination)