From ffc4fa97e79866ac508ccc8fa3c0759e6c96effa Mon Sep 17 00:00:00 2001 From: emmett1 Date: Sun, 1 Oct 2017 21:04:37 +0800 Subject: [PATCH] updated --- scratch | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/scratch b/scratch index 1347c01..d7fd9c3 100755 --- a/scratch +++ b/scratch @@ -5,9 +5,8 @@ listinstalled() { getinstalledname $installed installedpkg+=($installedname) done - for ip in ${installedpkg[@]}; do - echo $ip - done + + echo ${installedpkg[@]} | tr ' ' '\n' msg "Total installed package(s): ${#installedpkg[@]}" } @@ -46,9 +45,7 @@ listorphan() { fi done - for i in ${ORPHAN_PKG[@]}; do - echo $i - done + echo ${ORPHAN_PKG[@]} | tr ' ' '\n' msg "Total orphan package(s): ${#ORPHAN_PKG[@]}" }