aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest/002-test-key-name.test/run.sh5
1 files changed, 4 insertions, 1 deletions
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[*]}..."