diff options
| author | Mateusz Piotrowski <0mp@FreeBSD.org> | 2019-09-05 14:52:22 +0000 |
|---|---|---|
| committer | Mateusz Piotrowski <0mp@FreeBSD.org> | 2019-09-05 14:52:22 +0000 |
| commit | d15e810db9a57833272cceffa41998575360cb0c (patch) | |
| tree | 66256618f29a7c8b41e9d5d0d5b5dcf31de28e34 /libexec | |
| parent | 92fd0827c16e521afb026c0290ab30884fb496a4 (diff) | |
Notes
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/rc/rc.subr | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libexec/rc/rc.subr b/libexec/rc/rc.subr index 93d2cfda87b77..4ae3c7ec1084a 100644 --- a/libexec/rc/rc.subr +++ b/libexec/rc/rc.subr @@ -1036,6 +1036,9 @@ run_rc_command() _postcmd=\$${rc_arg}_postcmd if [ -n "$_cmd" ]; then + if [ -n "$_env" ]; then + eval "export -- $_env" + fi _run_rc_precmd || return 1 _run_rc_doit "$_cmd $rc_extra_args" || return 1 _run_rc_postcmd |
