From 1447760be3dd7206cf424f0e57d694ab7c71fef6 Mon Sep 17 00:00:00 2001 From: jgrusewski Date: Wed, 11 Mar 2026 02:26:32 +0100 Subject: [PATCH] fix(ci): replace bash substring syntax with POSIX-compatible cut ${var:0:8} is a bashism that fails on /bin/sh (dash). Use cut instead. Co-Authored-By: Claude Opus 4.6 --- infra/k8s/argo/ci-pipeline-template.yaml | 4 ++-- infra/k8s/argo/compile-and-train-template.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/infra/k8s/argo/ci-pipeline-template.yaml b/infra/k8s/argo/ci-pipeline-template.yaml index f806e82c3..2612c9fd8 100644 --- a/infra/k8s/argo/ci-pipeline-template.yaml +++ b/infra/k8s/argo/ci-pipeline-template.yaml @@ -681,7 +681,7 @@ spec: if [ "$CURRENT" = "$SHA" ]; then echo "=== Already at $SHA, skipping checkout ===" else - echo "=== Updating checkout: ${CURRENT:0:8} → ${SHA:0:8} ===" + echo "=== Updating checkout: $(echo $CURRENT | cut -c1-8) -> $(echo $SHA | cut -c1-8) ===" git fetch origin git checkout --force "$SHA" git clean -fd @@ -841,7 +841,7 @@ spec: if [ "$CURRENT" = "$SHA" ]; then echo "=== Already at $SHA, skipping checkout ===" else - echo "=== Updating checkout: ${CURRENT:0:8} → ${SHA:0:8} ===" + echo "=== Updating checkout: $(echo $CURRENT | cut -c1-8) -> $(echo $SHA | cut -c1-8) ===" git fetch origin git checkout --force "$SHA" git clean -fd diff --git a/infra/k8s/argo/compile-and-train-template.yaml b/infra/k8s/argo/compile-and-train-template.yaml index 61dfd9dc1..b27714add 100644 --- a/infra/k8s/argo/compile-and-train-template.yaml +++ b/infra/k8s/argo/compile-and-train-template.yaml @@ -187,7 +187,7 @@ spec: if [ "$CURRENT" = "$SHA" ]; then echo "=== Already at $SHA, skipping checkout ===" else - echo "=== Updating checkout: ${CURRENT:0:8} → ${SHA:0:8} ===" + echo "=== Updating checkout: $(echo $CURRENT | cut -c1-8) -> $(echo $SHA | cut -c1-8) ===" git fetch origin git checkout --force "$SHA" git clean -fd