From 5b6a5963ad60ec46169b1959dcacd3adccb87ed5 Mon Sep 17 00:00:00 2001 From: SamNet-dev Date: Mon, 9 Feb 2026 19:10:06 -0600 Subject: [PATCH] fix: Locale-safe CPU value for snowflake docker --cpus flag (#38) awk printf "%.2f" outputs "1,00" instead of "1.00" on systems with comma-decimal locales (Turkish, German, etc.), causing docker to reject the --cpus value. Force LC_ALL=C for the awk call. --- conduit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conduit.sh b/conduit.sh index 3fd4e42..b067e8f 100644 --- a/conduit.sh +++ b/conduit.sh @@ -1134,7 +1134,7 @@ run_snowflake_container() { docker pull "$SNOWFLAKE_IMAGE" 2>/dev/null || true fi - local actual_cpus=$(awk -v req="$sf_cpus" -v cores="$(nproc 2>/dev/null || echo 1)" \ + local actual_cpus=$(LC_ALL=C awk -v req="$sf_cpus" -v cores="$(nproc 2>/dev/null || echo 1)" \ 'BEGIN{c=req+0; if(c>cores+0) c=cores+0; printf "%.2f",c}') local _sf_err