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)