Skip to content

Commit

Permalink
feat: support env variables in theme commands
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippHeuer committed Aug 11, 2024
1 parent 51288d3 commit 3c033d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/util/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import (

// RunCommand executes a given shell command and returns an error if the command fails.
func RunCommand(command string) error {
command = ResolvePath(command) // support placeholders such as ~ and $HOME

cmd := exec.Command("sh", "-c", command)

cmd.Stdout = os.Stderr
Expand Down

0 comments on commit 3c033d1

Please # to comment.