Return non-zero exit code when "tinc get" does not find the requested variable.
This commit is contained in:
parent
ef5e8b6920
commit
1ce0f76139
1 changed files with 1 additions and 1 deletions
|
@ -1613,7 +1613,7 @@ static int cmd_config(int argc, char *argv[]) {
|
||||||
if(action < -1) {
|
if(action < -1) {
|
||||||
if(!found)
|
if(!found)
|
||||||
fprintf(stderr, "No matching configuration variables found.\n");
|
fprintf(stderr, "No matching configuration variables found.\n");
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure we wrote everything...
|
// Make sure we wrote everything...
|
||||||
|
|
Loading…
Reference in a new issue