From 43bcd36bb31c1ab117b54f21746b119db2448449 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 20 Nov 2023 17:07:11 -0500 Subject: Use TMPDIR, and fail when script cannot be executed within that filesystem --- src/deliverable.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/deliverable.c') diff --git a/src/deliverable.c b/src/deliverable.c index a9b3b51..7008e7e 100644 --- a/src/deliverable.c +++ b/src/deliverable.c @@ -898,12 +898,14 @@ void delivery_tests_run(struct Delivery *ctx) { } void delivery_gather_tool_versions(struct Delivery *ctx) { + int status = 0; + // Extract version from tool output - ctx->conda.tool_version = shell_output("conda --version"); + ctx->conda.tool_version = shell_output("conda --version", &status); if (ctx->conda.tool_version) strip(ctx->conda.tool_version); - ctx->conda.tool_build_version = shell_output("conda build --version"); + ctx->conda.tool_build_version = shell_output("conda build --version", &status); if (ctx->conda.tool_build_version) strip(ctx->conda.tool_version); } -- cgit