Skip to content

Commit a0a84ff

Browse files
authored
Only set permissions for current user's files in main dir (#406)
1 parent 88ef3a5 commit a0a84ff

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
@@ -803,7 +803,8 @@ def copy_and_set_permissions(source_glob: str, destination: str) -> None:
803803
f"find {destination} -maxdepth 0 ! -perm 775 -exec chmod 775 {{}} +"
804804
)
805805
execute_command(
806-
f"find {destination} -type f ! -perm 664 -exec chmod 664 {{}} +"
806+
f"find {destination} -maxdepth 1 -type f -user $USER ! -perm 664 "
807+
f"-exec chmod 664 {{}} +"
807808
)
808809

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

0 commit comments

Comments
 (0)