We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d844bfe commit 1f0216bCopy full SHA for 1f0216b
1 file changed
tools/pkglist.sh
@@ -239,11 +239,8 @@ else
239
msg_debug "No packages are excluded."
240
fi
241
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))
+# パッケージリストをソートし重複を削除
+_pkglist=($(printf "%s\n" "${_pkglist[@]}" | sort | uniq | tr "\n" " "))
247
248
OLD_IFS="${IFS}"
249
if [[ "${line}" = true ]]; then
0 commit comments