lots cmake improvements

correct non root packaging
This commit is contained in:
lukas committed 2020-04-29 18:33:30 +02:00
1 parent 54a0ea9f98
commit 5499fadac8
3 files changed
+17 -13

No files matched your search

+4 -2
View File
@@ -5,7 +5,10 @@
#include <Credentials.h>
int main(int argc, char *argv[]) {
if(!Credentials::checkCredentialValidity()) return -1;
if (!Credentials::checkCredentialValidity()) {
std::cout << "incorrect credentials!" << std::endl;
return -1;
}
if (argc > 1) {
std::string firstarg(argv[1]);
if (firstarg == "-h" || firstarg == "--help") {
@@ -28,7 +31,6 @@ int main(int argc, char *argv[]) {
IPRefresher ipr;
Logger::message("starting check");
ipr.checkIPAdress(false);
}
return 0;