diff --git a/src/commands/install.cpp b/src/commands/install.cpp index ffdc8ca..6adc3ff 100644 --- a/src/commands/install.cpp +++ b/src/commands/install.cpp @@ -170,7 +170,7 @@ namespace dropshell result += buffer; } pclose(pipe); - return result; + return trim(result); } int update_dropshell() @@ -270,8 +270,11 @@ namespace dropshell std::cout << "Downloaded bb64 to " << localpath::agent() << std::endl; else std::cerr << "Failed to download bb64 to " << localpath::agent() << std::endl; - } else + } else { + std::cout << "Updating bb64..." << std::endl; system((localpath::agent()+"bb64 -u").c_str()); // update. + } + return 0; } int install_host() @@ -286,12 +289,16 @@ namespace dropshell rval = install_local_agent(); if (rval != 0) return rval; + + return 0; } int install_server(const std::string &server) { + #pragma WARNING "Need to implement install_server" // install the dropshell agent on the given server. + return 1; // NOTIMPL } // ------------------------------------------------------------------------------------------------