Skip to content

Commit 955b51e

Browse files
committed
Avoid using readarray in our fake stub ruby due to GitHub Action's macOS.
1 parent e05c0a4 commit 955b51e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/setup

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ if [[ "\$1" == "-e" ]]; then
3232
;;
3333
esac
3434
else
35-
readarray -t input
36-
37-
for line in "\${input[@]}"; do
35+
while IFS=$'\n' read -r line; do
3836
if [[ "\$line" == *"puts \"export RUBY_ENGINE=#{Object.const_defined?(:RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'};\""* ]]; then
3937
echo "export RUBY_ENGINE=$test_ruby_engine;"
4038
fi

0 commit comments

Comments
 (0)