Skip to content

Commit 1358467

Browse files
committed
refactor: add executing shell to proxy command
1 parent a453912 commit 1358467

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

helper/cmd/proxy_commands/configure.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ func (cmd *ConfigureCmd) Run(_ *cobra.Command, _ []string) error {
5555
// first configure the commands
5656
for _, c := range cmd.Commands {
5757
filePath := "/usr/local/bin/" + c
58-
executeCommand := fmt.Sprintf("/tmp/devspacehelper proxy-commands run %s $@", c)
58+
executeCommand := fmt.Sprintf(`#!/bin/sh
59+
/tmp/devspacehelper proxy-commands run %s $@`, c)
5960
err := ioutil.WriteFile(filePath, []byte(executeCommand), 0777)
6061
if err != nil {
6162
return fmt.Errorf("error writing command '%s': %v", filePath, err)

0 commit comments

Comments
 (0)