mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-20 10:21:36 -04:00
Fix missing escapes
This commit is contained in:
+4
-4
@@ -91,10 +91,10 @@ create_with_contenv_alias() {
|
|||||||
cat <<-EOF >/usr/bin/with-contenv
|
cat <<-EOF >/usr/bin/with-contenv
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
if [[ -f /run/s6/container_environment/UMASK ]] &&
|
if [[ -f /run/s6/container_environment/UMASK ]] &&
|
||||||
{ [[ "$(pwdx \$\$)" =~ "/run/s6/legacy-services/" ]] ||
|
{ [[ "\$(pwdx \$\$)" =~ "/run/s6/legacy-services/" ]] ||
|
||||||
[[ "$(pwdx \$\$)" =~ "/run/s6/services/" ]] ||
|
[[ "\$(pwdx \$\$)" =~ "/run/s6/services/" ]] ||
|
||||||
[[ "$(pwdx \$\$)" =~ "/servicedirs/svc-" ]]; }; then
|
[[ "\$(pwdx \$\$)" =~ "/servicedirs/svc-" ]]; }; then
|
||||||
umask "$(cat /run/s6/container_environment/UMASK)"
|
umask "\$(cat /run/s6/container_environment/UMASK)"
|
||||||
fi
|
fi
|
||||||
exec /command/with-contenv "\$@"
|
exec /command/with-contenv "\$@"
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user