diff --git a/share/ruby-install/functions.sh b/share/ruby-install/functions.sh index 7fad2a55..0c2bc04e 100644 --- a/share/ruby-install/functions.sh +++ b/share/ruby-install/functions.sh @@ -19,7 +19,10 @@ function load_dependencies_from() { local file="$1" - ruby_dependencies=($(fetch "$ruby/$file" "$package_manager" || return $?)) + ruby_dependencies=() + while IFS='' read -r line; do + ruby_dependencies+=("$line"); + done < <(fetch "$ruby/$file" "$package_manager" || return $?) } # diff --git a/share/ruby-install/package_manager.sh b/share/ruby-install/package_manager.sh index 1b177139..9da11eed 100644 --- a/share/ruby-install/package_manager.sh +++ b/share/ruby-install/package_manager.sh @@ -41,7 +41,10 @@ function install_packages() run $brew_sudo brew upgrade "$@" || return $? ;; pacman) - local missing_pkgs=($(pacman -T "$@")) + local missing_pkgs=() + while IFS='' read -r line; do + missing_pkgs+=("$line"); + done < <(pacman -T "$@") if (( ${#missing_pkgs[@]} > 0 )); then run $sudo pacman -S "${missing_pkgs[@]}" || return $?