From 283b88effccdbfffbc937cabea4904e18442e7a0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 13 May 2025 22:26:24 +1200 Subject: [PATCH] Working on install. --- src/commands/install.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 } // ------------------------------------------------------------------------------------------------