aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-11-22 16:23:45 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-11-22 16:23:45 -0500
commit8e277c4c1199b9170eca014e62970a7f2be17e8a (patch)
tree323c8f931832b9c55ef5da6f008f2e56c0851e3c
parent4bb95cb0d95138ac768c80b30728bef8f691f1e8 (diff)
downloadstasis-8e277c4c1199b9170eca014e62970a7f2be17e8a.tar.gz
Unindent script
-rw-r--r--src/lib/core/delivery_test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/core/delivery_test.c b/src/lib/core/delivery_test.c
index 0bcf04d..8dbcd78 100644
--- a/src/lib/core/delivery_test.c
+++ b/src/lib/core/delivery_test.c
@@ -118,6 +118,9 @@ void delivery_tests_run(struct Delivery *ctx) {
SYSERROR("An error occurred while rendering the following:\n%s", cmd);
exit(1);
}
+ // Move indents
+ // HEREDOCs will not work otherwise
+ unindent(cmd);
if (test->disable) {
msg(STASIS_MSG_L2, "Script execution disabled by configuration\n", test->name);