aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-make/exec.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2017-02-12 23:48:42 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2017-02-12 23:48:42 +0100
commit716cbb0627f1432bae86b2f3daa1261c0e907776 (patch)
tree3d03fd8db4eef920e54efdaa44e50793048a3c6d /src/blogc-make/exec.c
parent4ad218b5710659899ba842da5a597db5052f2d4d (diff)
downloadblogc-716cbb0627f1432bae86b2f3daa1261c0e907776.tar.gz
blogc-716cbb0627f1432bae86b2f3daa1261c0e907776.tar.bz2
blogc-716cbb0627f1432bae86b2f3daa1261c0e907776.zip
blogc-make: use absolute path for runserver rule
Diffstat (limited to 'src/blogc-make/exec.c')
-rw-r--r--src/blogc-make/exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blogc-make/exec.c b/src/blogc-make/exec.c
index ee86f15..e1ff238 100644
--- a/src/blogc-make/exec.c
+++ b/src/blogc-make/exec.c
@@ -305,7 +305,7 @@ bm_exec_blogc(bm_settings_t *settings, bc_trie_t *variables, bool listing,
int
-bm_exec_blogc_runserver(bm_settings_t *settings, bool verbose)
+bm_exec_blogc_runserver(const char *output_dir, bool verbose)
{
bc_string_t *cmd = bc_string_new();
@@ -341,7 +341,7 @@ bm_exec_blogc_runserver(bm_settings_t *settings, bool verbose)
free(tmp);
}
- char *tmp = bc_shell_quote(bc_trie_lookup(settings->settings, "output_dir"));
+ char *tmp = bc_shell_quote(output_dir);
bc_string_append_printf(cmd, " %s", tmp);
free(tmp);