Skip to content

Commit f54ef30

Browse files
committed
Only set permissions for current user's files in main dir
1 parent 6e6f19d commit f54ef30

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

run_release.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,8 @@ def copy_and_set_permissions(source_glob: str, destination: str) -> None:
822822
f"find {destination} -maxdepth 0 ! -perm 775 -exec chmod 775 {{}} +"
823823
)
824824
execute_command(
825-
f"find {destination} -type f ! -perm 664 -exec chmod 664 {{}} +"
825+
f"find {destination} -maxdepth 1 -type f -user $USER ! -perm 664 "
826+
f"-exec chmod 664 {{}} +"
826827
)
827828

828829
copy_and_set_permissions(f"{source}/downloads/*", destination)

0 commit comments

Comments
 (0)