aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-make
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2019-07-15 23:09:32 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2019-07-15 23:09:32 +0200
commit3b27b61e5409f58531e4aa8ce899b2d9c96fb433 (patch)
tree06f3fc8f4bb45439687c1ce0f45d4859d42eb7af /src/blogc-make
parent533ad336eeb6636565198ac2212e2a652b3dd8c4 (diff)
downloadblogc-3b27b61e5409f58531e4aa8ce899b2d9c96fb433.tar.gz
blogc-3b27b61e5409f58531e4aa8ce899b2d9c96fb433.tar.bz2
blogc-3b27b61e5409f58531e4aa8ce899b2d9c96fb433.zip
make: exec: silent "variable not found" errors
Diffstat (limited to 'src/blogc-make')
-rw-r--r--src/blogc-make/exec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/blogc-make/exec.c b/src/blogc-make/exec.c
index 3e53319..74af2ed 100644
--- a/src/blogc-make/exec.c
+++ b/src/blogc-make/exec.c
@@ -16,6 +16,7 @@
#include <string.h>
#include <unistd.h>
#include <sys/wait.h>
+#include <sysexits.h>
#include <errno.h>
#include <libgen.h>
#include "../common/compat.h"
@@ -408,7 +409,8 @@ bm_exec_blogc_get_variable(bm_ctx_t *ctx, bc_trie_t *global_variables,
}
if (rv != 0) {
- fprintf(stderr, "blogc-make: error: %s\n", bc_str_strip(err));
+ if (rv != EX_CONFIG)
+ fprintf(stderr, "blogc-make: error: %s\n", bc_str_strip(err));
bc_string_free(input, true);
free(cmd);
free(out);