diff options
author | Joe <rbo@gmx.us> | 2024-02-02 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-02-02 20:20:20 +0100 |
commit | 795350b07b889f0ad216a41ea080c431e27c1503 (patch) | |
tree | 7b77a0a70e35917fe8ff24c9ed1ec7b78ba2305d | |
parent | stackin (diff) | |
download | hardflip-795350b07b889f0ad216a41ea080c431e27c1503.tar.gz hardflip-795350b07b889f0ad216a41ea080c431e27c1503.tar.bz2 hardflip-795350b07b889f0ad216a41ea080c431e27c1503.tar.xz hardflip-795350b07b889f0ad216a41ea080c431e27c1503.tar.zst hardflip-795350b07b889f0ad216a41ea080c431e27c1503.zip |
stack
-rw-r--r-- | src/c_exec.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/c_exec.go b/src/c_exec.go index 4ca6eea..722dfbd 100644 --- a/src/c_exec.go +++ b/src/c_exec.go @@ -43,7 +43,7 @@ * POSSIBILITY OF SUCH DAMAGE. * * hardflip: src/c_exec.go - * Thu Feb 01 16:56:52 2024 + * Fri Feb 02 09:41:42 2024 * Joe * * exec the command at some point @@ -64,6 +64,7 @@ func c_exec_cmd(cmd_fmt, cmd_env []string) { cmd := exec.Command(cmd_fmt[0], cmd_fmt[1:]...) if cmd_env != nil { + cmd.Env = os.Environ() cmd.Env = append(cmd.Env, cmd_env...) } cmd.Stdin = os.Stdin |