Commit 6c90ba4d authored by Yuki Nishiwaki's avatar Yuki Nishiwaki Committed by Joffrey F

Return error of command exec in SSH NativeClient

Signed-off-by: default avatarYuki Nishiwaki <[email protected]>
parent 7a9ce457
......@@ -321,11 +321,14 @@ func (client *NativeClient) Shell(args ...string) error {
if err := session.Shell(); err != nil {
return err
}
session.Wait()
if err := session.Wait(); err != nil {
return err
}
} else {
session.Run(strings.Join(args, " "))
if err := session.Run(strings.Join(args, " ")); err != nil {
return err
}
}
return nil
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment