Skip to content

Commit 83a5335

Browse files
authored
Improve performance of fix-permissions script (#1776)
1 parent 1784ef4 commit 83a5335

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

base-notebook/fix-permissions

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ for d in "$@"; do
2323
-group "${NB_GID}" \
2424
-a -perm -g+rwX \
2525
\) \
26-
-exec chgrp "${NB_GID}" {} \; \
27-
-exec chmod g+rwX {} \;
26+
-exec chgrp "${NB_GID}" -- {} \+ \
27+
-exec chmod g+rwX -- {} \+
2828
# setuid, setgid *on directories only*
2929
find "${d}" \
3030
\( \
3131
-type d \
3232
-a ! -perm -6000 \
3333
\) \
34-
-exec chmod +6000 {} \;
34+
-exec chmod +6000 -- {} \+
3535
done

0 commit comments

Comments
 (0)