mirror of
https://github.com/Luzifer/streamdeck.git
synced 2024-12-20 09:41:19 +00:00
Fix: Execute command with parent env
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
9ed2e81404
commit
dcf7241ca5
1 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
"os/exec"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
@ -28,6 +29,8 @@ func (actionExec) Execute(attributes map[string]interface{}) error {
|
|||
}
|
||||
|
||||
command := exec.Command(args[0], args[1:]...)
|
||||
command.Env = os.Environ()
|
||||
|
||||
if err := command.Start(); err != nil {
|
||||
return errors.Wrap(err, "Unable to start command")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue