This commit is contained in:
parent
9a141685de
commit
73f85769a2
@ -4,7 +4,7 @@ on: [push]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build_and_Test:
|
Build_and_Test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
@ -203,7 +203,7 @@ namespace dropshell
|
|||||||
int rval = system(cmd.c_str());
|
int rval = system(cmd.c_str());
|
||||||
if (rval != 0)
|
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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -212,7 +212,7 @@ namespace dropshell
|
|||||||
uint64_t old_hash = hash_file(parent_path / "dropshell");
|
uint64_t old_hash = hash_file(parent_path / "dropshell");
|
||||||
if (new_hash == old_hash)
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -316,6 +316,8 @@ namespace dropshell
|
|||||||
if (rval != 0)
|
if (rval != 0)
|
||||||
return rval;
|
return rval;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
|
||||||
rval = install_local_agent();
|
rval = install_local_agent();
|
||||||
if (rval != 0)
|
if (rval != 0)
|
||||||
return rval;
|
return rval;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user