From 71cfb2e0e7915002fbc723ac99caf61f09b10eef Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Wed, 8 Oct 2025 00:43:37 +0300 Subject: [PATCH] Fix shell helpers - Use alternative function format to make shellcheck happy - specify bash as an interpreter --- scripts/_helpers.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/_helpers.sh b/scripts/_helpers.sh index ffb13127..4ae2328a 100644 --- a/scripts/_helpers.sh +++ b/scripts/_helpers.sh @@ -1,4 +1,6 @@ -ensure_working_directory!() { +#!/usr/bin/env bash + +function ensure_working_directory! { root_dir="$(git rev-parse --show-toplevel)" if [[ "$PWD" != "$root_dir" ]]; then