From 0837ba38e88d240efbe0c6f66d6f9f0e96362fb8 Mon Sep 17 00:00:00 2001 From: emmett1 Date: Sun, 14 Jan 2018 16:01:14 +0800 Subject: [PATCH] updated --- scratch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scratch b/scratch index 2033174..a8212fe 100755 --- a/scratch +++ b/scratch @@ -458,7 +458,8 @@ updports() { duplicateports() { - dup=$(find ${PORT_REPO[@]} -type d | grep '/' | rev | cut -d '/' -f1 | rev | sort | uniq -d) + dup=$(find ${PORT_REPO[@]} -type d -print | egrep -xv "($(echo ${PORT_REPO[@]} | tr ' ' '|'))" | \ + rev | cut -d '/' -f1 | rev | sort | uniq -d) if [ "$dup" ]; then for dp in $dup; do