From ed8219fd686986b95d64dc58f53a9e3cd8ea3c67 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sat, 5 Sep 2020 16:31:59 +1200 Subject: Switch mapfile for explicit loop Fixes issue on stock Mac OS with older bash --- test/002-test-key-name.test/run.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/002-test-key-name.test') diff --git a/test/002-test-key-name.test/run.sh b/test/002-test-key-name.test/run.sh index 0f7df69..f0ed1ec 100755 --- a/test/002-test-key-name.test/run.sh +++ b/test/002-test-key-name.test/run.sh @@ -15,7 +15,10 @@ stderr="$(mktemp)" # Four character search should be a < 1 second CPU burst for CI runner ${EXECUTABLE} -s site > "$key" 2>"$stderr" -mapfile -t found < <(tr '\r' '\n' < "$stderr" | grep Found | cut -d ' ' -f 3) +# no mapfile, Mac OS compat +while IFS= read -r domain ; do + found+=("$domain") +done < <(tr '\r' '\n' < "$stderr" | grep Found | cut -d ' ' -f 3) echo "sand-leek says it found ${found[*]}..." -- cgit v1.1