mirror of
https://github.com/rancher/os.git
synced 2025-08-31 14:23:11 +00:00
Fix typo and set output for start scripts
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user