Remote create not working yet.
Some checks failed
Dropshell Test / Build_and_Test (push) Has been cancelled
Some checks failed
Dropshell Test / Build_and_Test (push) Has been cancelled
This commit is contained in:
@ -84,7 +84,11 @@ namespace dropshell {
|
||||
// create the sh file on the remote server.
|
||||
for (const auto &file : agent_files) {
|
||||
// write out the file contents in the file.
|
||||
remote_write_file(server_env.get_SSH_INFO(), file);
|
||||
if (remote_write_file(server_env.get_SSH_INFO(), file) != 0) {
|
||||
std::cerr << "Failed to write file " << file.filename << std::endl;
|
||||
return 1;
|
||||
}
|
||||
std::cout << "Wrote file " << file.filename << " on " << server_name << std::endl;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user