From ec08e04f2c49b100c35ac0e58d13705c66357876 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Wed, 26 Feb 2025 16:58:31 +0100 Subject: [PATCH] return negative error codes --- Sync/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sync/main.cpp b/Sync/main.cpp index 0a28a1e..2519064 100644 --- a/Sync/main.cpp +++ b/Sync/main.cpp @@ -90,5 +90,5 @@ int main(int argc, char **argv) { if (ret == 0) { ret = SyncCommand().exec("rsync", options << optInRepo << "/opt"); } - return ret; + return (ret > 0) ? -ret : ret; }