Fix missing escapes

This commit is contained in:
Eric Nemchik
2023-01-24 17:52:10 -06:00
parent d54d46ed15
commit 8b36587903
+4 -4
View File
@@ -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