File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,14 @@ if [ -f "/usr/bin/find" ] && [ -f "/usr/bin/xargs" ]; then
22
22
# Split workload between config and workspace
23
23
echo "setting permissions::configuration"
24
24
CORES=$(nproc --all)
25
- find /config -maxdepth 4 -mindepth 1 -path /config/workspace -prune -false -o -type d | \
26
- xargs --max-args=1 --max-procs=$(($ CORES*2*8)) \
25
+ find /config -maxdepth 4 -mindepth 1 -path /config/workspace -prune -false -o -type d -print0 | \
26
+ xargs --max-args=1 --max-procs=$((CORES*2*8)) \
27
27
chown -R abc:abc
28
28
29
29
echo "setting permissions::workspace"
30
30
chown abc:abc /config/workspace
31
- find /config/workspace -maxdepth 4 -mindepth 1 -type d | \
32
- xargs --max-args=1 --max-procs=$(($ CORES*2*16)) \
31
+ find /config/workspace -maxdepth 4 -mindepth 1 -type d -print0 | \
32
+ xargs --max-args=1 --max-procs=$((CORES*2*16)) \
33
33
chown -R abc:abc
34
34
else
35
35
chown -R abc:abc \
You can’t perform that action at this time.
0 commit comments