From a1608a1d3c676076a82e50ba0b0c5f9c4699a5b2 Mon Sep 17 00:00:00 2001 From: "G.J.R. Timmer" Date: Mon, 5 Jul 2021 01:15:55 +0200 Subject: [PATCH] Fix shellcheck warnings --- root/etc/cont-init.d/30-config | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/root/etc/cont-init.d/30-config b/root/etc/cont-init.d/30-config index 32fdf2a..877ac95 100644 --- a/root/etc/cont-init.d/30-config +++ b/root/etc/cont-init.d/30-config @@ -22,14 +22,14 @@ if [ -f "/usr/bin/find" ] && [ -f "/usr/bin/xargs" ]; then # Split workload between config and workspace echo "setting permissions::configuration" CORES=$(nproc --all) - find /config -maxdepth 4 -mindepth 1 -path /config/workspace -prune -false -o -type d | \ - xargs --max-args=1 --max-procs=$(($CORES*2*8)) \ + find /config -maxdepth 4 -mindepth 1 -path /config/workspace -prune -false -o -type d -print0 | \ + xargs --max-args=1 --max-procs=$((CORES*2*8)) \ chown -R abc:abc echo "setting permissions::workspace" chown abc:abc /config/workspace - find /config/workspace -maxdepth 4 -mindepth 1 -type d | \ - xargs --max-args=1 --max-procs=$(($CORES*2*16)) \ + find /config/workspace -maxdepth 4 -mindepth 1 -type d -print0 | \ + xargs --max-args=1 --max-procs=$((CORES*2*16)) \ chown -R abc:abc else chown -R abc:abc \