From 987fcd98ecae50b55a047389f42cdbe5544e30e8 Mon Sep 17 00:00:00 2001 From: emmett1 Date: Sun, 29 Jul 2018 09:04:24 +0800 Subject: [PATCH] updated --- scratch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scratch b/scratch index b16fc80..b40b64b 100755 --- a/scratch +++ b/scratch @@ -486,11 +486,11 @@ sysup() { UPGPKG=0 NEWPKG=0 for d in $DEP; do - if [ "$(echo $PKGOUTDATE | grep -x $d)" = "$d" ]; then + if [ "$(echo $PKGOUTDATE | tr ' ' '\n' | grep -x $d)" = "$d" ]; then echo -ne "[${GREEN}u${CRESET}] $d " WILLINSTALL+=($d) UPGPKG=$(( $UPGPKG + 1 )) - elif [ ! -e "$INDEX_DIR/$d/.pkginfo" ] && getportpath "$d" >/dev/null; then + elif [ ! -e "$INDEX_DIR/$d/.pkginfo" ] && [ $(getportpath "$d") ]; then echo -ne "[${CYAN}n${CRESET}] $d " WILLINSTALL+=($d) NEWPKG=$(( $NEWPKG + 1 ))