diff --git a/cmd/console/console.go b/cmd/console/console.go index 83ec82c8..7efed82f 100644 --- a/cmd/console/console.go +++ b/cmd/console/console.go @@ -283,7 +283,7 @@ func setupSSH(cfg *config.CloudConfig) error { } func runScript(path string) error { - if !util.ExistsAndExecutable(config.CloudConfigScriptFile) { + if !util.ExistsAndExecutable(path) { return nil } @@ -302,5 +302,8 @@ func runScript(path string) error { cmd = exec.Command(path) } + cmd.Stdout = os.Stdout + cmd.Stderr = os.Stderr + return cmd.Run() }