feat: Update 2 files
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 37s
Build-Test-Publish / build (linux/arm64) (push) Successful in 1m8s

This commit is contained in:
Your Name
2025-08-23 18:19:43 +12:00
parent 11d4748bb6
commit 8348ea63a0
2 changed files with 11 additions and 10 deletions

View File

@@ -31,6 +31,7 @@ if [ "${INSTALL_LOCAL:-true}" = "true" ]; then
INSTALL_DIR="${HOME}/.local/bin"
mkdir -p "${INSTALL_DIR}"
cp "${SCRIPT_DIR}/output/dropshell" "${INSTALL_DIR}/dropshell"
"${INSTALL_DIR}/dropshell" install
echo "Dropshell installed to ${INSTALL_DIR}/dropshell"
fi

View File

@@ -449,15 +449,6 @@ complete -F _dropshell_completions ds
if (rval != 0)
return rval;
// install the dropshell agent on all servers.
std::vector<ServerConfig> servers = get_configured_servers();
for (const auto &server : servers)
{
rval = install_server(server);
if (rval != 0)
return rval;
}
std::cout << "Installation complete." << std::endl;
return 0;
}
@@ -482,6 +473,15 @@ complete -F _dropshell_completions ds
if (ctx.args.size() == 1)
{ // install server
if (server == "all")
{ // install the dropshell agent on all servers.
int rval = 0;
std::vector<ServerConfig> servers = get_configured_servers();
for (const auto &server : servers)
rval += abs(install_server(server)); // capture any non-zero return values.
return rval;
}
else
return install_server(server);
}