Skip to content

Commit c596e44

Browse files
committed
[fix] : Fixed SC2207
1 parent 1864ece commit c596e44

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/testpkg.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,13 @@ done
9090
# パッケージ一覧
9191
msg_debug "Getting package list ..."
9292
for arch in "${archs[@]}"; do
93-
packages+=($("${script_path}/tools/allpkglist.sh" -s -a "${arch}"))
93+
readarray -O "${#packages[@]}" packages < <("${script_path}/tools/allpkglist.sh" -s -a "${arch}")
9494
done
9595

9696
# ArchLinux公式サイトからパッケージグループの一覧を取得
9797
msg_debug "Getting group list ..."
98-
group_list=($(curl -s https://archlinux.org/groups/ | grep "/groups/x86_64" | cut -d "/" -f 4))
98+
#group_list=($(curl -s https://archlinux.org/groups/ | grep "/groups/x86_64" | cut -d "/" -f 4))
99+
readarray -t group_list < <(pacman -Sgg | cut -d " " -f 1 | uniq)
99100

100101
# 実行開始
101102
for pkg in "${packages[@]}"; do

0 commit comments

Comments
 (0)