From b42c48a88cadd40d8f4f30bbffb2f8d58e99a1e0 Mon Sep 17 00:00:00 2001 From: emmett1 Date: Sun, 20 Sep 2020 22:06:51 +0800 Subject: [PATCH] fix how scratch read masked packages --- scratch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scratch b/scratch index 31e0260..c5c4987 100755 --- a/scratch +++ b/scratch @@ -697,7 +697,7 @@ scratch_remove() { outdatepkg() { for pkg in $(allinstalled); do - if [ -f "$MASK_FILE" ] && [ $(grep -Ev '^(#|$| )' $MASK_FILE | grep $pkg) ]; then + if [ -f "$MASK_FILE" ] && [ $(grep -Ev '^(#|$| )' $MASK_FILE | grep -w $pkg) ]; then continue fi [ -e "$PKGDB_DIR/$pkg/.lock" ] && continue