Skip to content

Commit 9e478f2

Browse files
committed
use xargs for recursive chown
1 parent 617252b commit 9e478f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ function fix_ownership() {
2626
# Perform the check per subdirectory to avoid unnecessary churn.
2727
# Assumes the ownership of the directories matches its subdirectories/files.
2828
#
29-
find "$dir" -maxdepth 1 -mindepth 1 \! -user $OWNER_USER -o \! -group $OWNER_GROUP \
30-
-exec chown -R $OWNER_USER:$OWNER_USER {} \;
29+
find "$dir" -maxdepth 1 -mindepth 1 \! -user $OWNER_USER -o \! -group $OWNER_GROUP | \
30+
xargs chown -R $OWNER_USER:$OWNER_USER
3131
}
3232

3333
command -v gosu >/dev/null 2>&1 || { echo "gosu missing"; exit 1; }

0 commit comments

Comments
 (0)