From e26a21d57c2fd706cf46fb6ad0b5bf7cc6b7377b Mon Sep 17 00:00:00 2001 From: Ivan Gagis Date: Thu, 21 Nov 2024 14:30:18 +0200 Subject: [PATCH] macos: fix --- src/myci-subst-var.sh | 2 +- tests/test.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/myci-subst-var.sh b/src/myci-subst-var.sh index 363ddca..304b5fb 100755 --- a/src/myci-subst-var.sh +++ b/src/myci-subst-var.sh @@ -94,7 +94,7 @@ for i in $infiles; do # substitute the rest of variables for k in ${!key[@]}; do [ "$k" != 0 ] || continue - ${subst_cmd[$k]} --in-place $outfile + ${subst_cmd[$k]} -i $outfile done else cp $i $outfile diff --git a/tests/test.sh b/tests/test.sh index 35a0fa2..8bead1b 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -3,7 +3,9 @@ #we want exit immediately if any command fails and we want error in piped commands to be preserved set -eo pipefail -tests=$(ls -d */) +script_dir="$(dirname $0)/" + +tests=$(ls -d $script_dir/*/) for t in $tests do