mirror of
https://github.com/linuxserver/docker-code-server.git
synced 2024-11-22 20:15:41 +01:00
Fix shellcheck warnings
This commit is contained in:
parent
b54982550b
commit
a1608a1d3c
@ -22,14 +22,14 @@ if [ -f "/usr/bin/find" ] && [ -f "/usr/bin/xargs" ]; then
|
|||||||
# Split workload between config and workspace
|
# Split workload between config and workspace
|
||||||
echo "setting permissions::configuration"
|
echo "setting permissions::configuration"
|
||||||
CORES=$(nproc --all)
|
CORES=$(nproc --all)
|
||||||
find /config -maxdepth 4 -mindepth 1 -path /config/workspace -prune -false -o -type d | \
|
find /config -maxdepth 4 -mindepth 1 -path /config/workspace -prune -false -o -type d -print0 | \
|
||||||
xargs --max-args=1 --max-procs=$(($CORES*2*8)) \
|
xargs --max-args=1 --max-procs=$((CORES*2*8)) \
|
||||||
chown -R abc:abc
|
chown -R abc:abc
|
||||||
|
|
||||||
echo "setting permissions::workspace"
|
echo "setting permissions::workspace"
|
||||||
chown abc:abc /config/workspace
|
chown abc:abc /config/workspace
|
||||||
find /config/workspace -maxdepth 4 -mindepth 1 -type d | \
|
find /config/workspace -maxdepth 4 -mindepth 1 -type d -print0 | \
|
||||||
xargs --max-args=1 --max-procs=$(($CORES*2*16)) \
|
xargs --max-args=1 --max-procs=$((CORES*2*16)) \
|
||||||
chown -R abc:abc
|
chown -R abc:abc
|
||||||
else
|
else
|
||||||
chown -R abc:abc \
|
chown -R abc:abc \
|
||||||
|
Loading…
Reference in New Issue
Block a user