Skip to content

Commit

Permalink
fix(playground): trim quotes from environment variables (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtan-brex authored Nov 28, 2024
1 parent 3b18bfe commit 83bd0e8
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 83bd0e8

Please sign in to comment.