From 620fb2406cd25452c2104335e9cb26cb2f6a7d69 Mon Sep 17 00:00:00 2001 From: j842 Date: Thu, 4 Sep 2025 15:31:37 +1200 Subject: [PATCH] feat: Update 2 files --- source/src/commands/install.cpp | 1 + source/src/utils/output.cpp | 1 + 2 files changed, 2 insertions(+) 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; }