diff --git a/source/src/commands/install.cpp b/source/src/commands/install.cpp index 2cc10c4..1cee35a 100644 --- a/source/src/commands/install.cpp +++ b/source/src/commands/install.cpp @@ -339,6 +339,7 @@ complete -F _dropshell_completions ds info << "Current version: " << currentver << std::endl; info << "Checking for updates..." << std::endl; + // Check version using the /version endpoint // The simple-object-server returns JSON: {"result":"success","version":"YYYY.MMDD.HHMM"} std::string version_url = "https://getbin.xyz/version/dropshell:latest-" + arch; diff --git a/source/src/utils/output.cpp b/source/src/utils/output.cpp index efaf422..f259139 100644 --- a/source/src/utils/output.cpp +++ b/source/src/utils/output.cpp @@ -76,6 +76,7 @@ namespace dropshell { dest_ << RESET; at_line_start_ = true; + dest_ << std::flush; } return c; }