Skip to content

Commit a1608a1

Browse files
committed
Fix shellcheck warnings
1 parent b549825 commit a1608a1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

root/etc/cont-init.d/30-config

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ if [ -f "/usr/bin/find" ] && [ -f "/usr/bin/xargs" ]; then
2222
# Split workload between config and workspace
2323
echo "setting permissions::configuration"
2424
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)) \
2727
chown -R abc:abc
2828

2929
echo "setting permissions::workspace"
3030
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)) \
3333
chown -R abc:abc
3434
else
3535
chown -R abc:abc \

0 commit comments

Comments
 (0)