Skip to content

Commit

Permalink
fix(playground): trim surrounding quotes from environment variable va…
Browse files Browse the repository at this point in the history
…lues
  • Loading branch information
jtan-brex committed Nov 28, 2024
1 parent 3b18bfe commit 50d0edf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/substation/playground.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,8 @@ func handleRun(w http.ResponseWriter, r *http.Request) {

// Set up environment variables
for key, value := range request.Env {
// Remove surrounding quotes if present to mimic the behavior of export in bash
value = strings.Trim(value, "\"")
os.Setenv(key, value)
}

Expand Down

0 comments on commit 50d0edf

Please sign in to comment.