From 730e48117149337c156f9ca17e1362235c75c98d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bojan=20=C4=8Cekrli=C4=87?= Date: Fri, 29 Sep 2023 16:43:55 +0200 Subject: [PATCH] Fix: running the script from non-script folder didn't work properly --- helm/tests.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helm/tests.sh b/helm/tests.sh index 1b83cf9..7a82ae2 100755 --- a/helm/tests.sh +++ b/helm/tests.sh @@ -1,9 +1,11 @@ #!/usr/bin/env bash set -e -mkdir -p fixtures SCRIPT_DIR="$( pwd; )/$( dirname -- $0; )" +cd "${SCRIPT_DIR}" FIND="find" + +mkdir -p fixtures # Brew installs GNU find as "gfind" by default if command -v gfind >/dev/null 2>&2; then FIND="$(which gfind)"