Skip to content

Commit 1f0216b

Browse files
committed
[fix] : Organize the package list all at once
1 parent d844bfe commit 1f0216b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tools/pkglist.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,8 @@ else
239239
msg_debug "No packages are excluded."
240240
fi
241241

242-
# Sort the list of packages in abc order.
243-
_pkglist=($(printf "%s\n" "${_pkglist[@]}" | sort | perl -pe 's/\n/ /g'))
244-
245-
# 重複してるものを削除
246-
_pkglist=($(printf "%s\n" "${_pkglist[@]}" | uniq))
242+
# パッケージリストをソートし重複を削除
243+
_pkglist=($(printf "%s\n" "${_pkglist[@]}" | sort | uniq | tr "\n" " "))
247244

248245
OLD_IFS="${IFS}"
249246
if [[ "${line}" = true ]]; then

0 commit comments

Comments
 (0)