From 52f7ab187ff46dd560fc787276953ed4b5f86f78 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 7 Mar 2026 23:53:34 +1300 Subject: [PATCH] fix: Pipe scripts to shellcheck via stdin to avoid Docker-in-Docker mount issues --- source/src/commands/validate-template.cpp | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/source/src/commands/validate-template.cpp b/source/src/commands/validate-template.cpp index 29fb58d..c583e74 100644 --- a/source/src/commands/validate-template.cpp +++ b/source/src/commands/validate-template.cpp @@ -86,12 +86,13 @@ int run_shellcheck(const std::filesystem::path& template_path, std::vector&1"; + std::string command = "cat " + script.string() + " | docker run --rm -i koalaman/shellcheck:stable " + "-f gcc -s bash -e SC1091 - 2>&1"; FILE* pipe = popen(command.c_str(), "r"); if (!pipe) { @@ -118,10 +119,14 @@ int run_shellcheck(const std::filesystem::path& template_path, std::vector