mirror of synced 2026-11-19 23:06:22 +03:00
Files
Laurent Bercot d941dac1d3 Some easy fixes
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2021-12-14 16:20:33 +00:00

14 lines
249 B
Bash
Executable File

#!/bin/sh -e
if test "$#" -eq 0 ; then
echo 'printcontenv: fatal: too few arguments' 1>&2
exit 100
fi
if test "0$S6_KEEP_ENV" -ne 0 ; then
eval s6-echo -- \$$1
else
exec 2>/dev/null
s6-cat < "/run/s6/container_environment/$1" && echo
fi