Skip to content

Commit 06bd75b

Browse files
committed
unbreak array
1 parent a4aa66f commit 06bd75b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

macos/runtime_setup_stages/install_gems.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ ROOTDIR=$(dirname "$0")
44
ROOTDIR=$(cd "$ROOTDIR/../.." && pwd)
55
source "$ROOTDIR/shared/lib/library.sh"
66

7-
read -ra RUBY_VERSIONS < "$ROOTDIR/shared/definitions/ruby_versions"
7+
declare -a RUBY_VERSIONS
8+
readarray -t RUBY_VERSIONS < "$ROOTDIR/shared/definitions/ruby_versions"
89
LAST_RUBY_VERSION=${RUBY_VERSIONS[${#RUBY_VERSIONS[@]} - 1]}
910

1011
if [[ -e /usr/local/rvm/bin/rvm-exec ]]; then

0 commit comments

Comments
 (0)