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;