File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ function load_dependencies_from()
1919{
2020 local file=" $1 "
2121
22- ruby_dependencies=($( fetch " $ruby /$file " " $package_manager " || return $? ) )
22+ ruby_dependencies=()
23+ while IFS=' ' read -r line; do
24+ ruby_dependencies+=(" $line " )
25+ done < <( fetch " $ruby /$file " " $package_manager " || return $? )
2326}
2427
2528#
Original file line number Diff line number Diff line change @@ -41,7 +41,10 @@ function install_packages()
4141 run $brew_sudo brew upgrade " $@ " || return $?
4242 ;;
4343 pacman)
44- local missing_pkgs=($( pacman -T " $@ " ) )
44+ local missing_pkgs=()
45+ while IFS=' ' read -r line; do
46+ missing_pkgs+=(" $line " )
47+ done < <( pacman -T " $@ " )
4548
4649 if (( ${# missing_pkgs[@]} > 0 )) ; then
4750 run $sudo pacman -S " ${missing_pkgs[@]} " || return $?
You can’t perform that action at this time.
0 commit comments