Skip to content

Commit e1c7cea

Browse files
committed
lint: Fix SC2207 violations
1 parent f2a5b39 commit e1c7cea

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

share/ruby-install/functions.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
#

share/ruby-install/package_manager.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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 $?

0 commit comments

Comments
 (0)