Skip to content
Snippets Groups Projects
Commit 6c90ba4d authored by Yuki Nishiwaki's avatar Yuki Nishiwaki Committed by Joffrey F
Browse files

Return error of command exec in SSH NativeClient

parent 7a9ce457
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment