Return non-zero exit code when "tinc get" does not find the requested variable.

This commit is contained in:
Guus Sliepen 2014-06-15 12:14:01 +02:00
parent ef5e8b6920
commit 1ce0f76139

View file

@ -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...