From 1ce0f7613964c7441ef683f9d875dd09cbfd667c Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 15 Jun 2014 12:14:01 +0200 Subject: [PATCH] Return non-zero exit code when "tinc get" does not find the requested variable. --- src/tincctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tincctl.c b/src/tincctl.c index 7a3195e..73b998a 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -1613,7 +1613,7 @@ static int cmd_config(int argc, char *argv[]) { if(action < -1) { if(!found) fprintf(stderr, "No matching configuration variables found.\n"); - return 0; + return 1; } // Make sure we wrote everything... -- 2.25.1