From 73f85769a25bb9d7e4dd0f56810699a3fe91cd62 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 25 May 2025 10:02:45 +1200 Subject: [PATCH] yaml --- .gitea/workflows/test.yaml | 2 +- source/src/commands/install.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 3cbad4d..ee4f273 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -4,7 +4,7 @@ on: [push] jobs: Build_and_Test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Install dependencies run: | diff --git a/source/src/commands/install.cpp b/source/src/commands/install.cpp index fcdeba0..6cc6430 100644 --- a/source/src/commands/install.cpp +++ b/source/src/commands/install.cpp @@ -203,7 +203,7 @@ namespace dropshell int rval = system(cmd.c_str()); if (rval != 0) { - std::cerr << "Failed to download new version of dropshell." << std::endl; + error << "Failed to download new version of dropshell." << std::endl; return -1; } @@ -212,7 +212,7 @@ namespace dropshell uint64_t old_hash = hash_file(parent_path / "dropshell"); if (new_hash == old_hash) { - std::cout << "Confirmed dropshell is the latest version." << std::endl; + info << "Confirmed dropshell is the latest version." << std::endl; return 0; } @@ -316,6 +316,8 @@ namespace dropshell if (rval != 0) return rval; + return 0; + rval = install_local_agent(); if (rval != 0) return rval;