From d5f4ae25c089c2133205313e4110fdee2d1ea319 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Thu, 4 May 2017 17:51:05 +0400 Subject: [PATCH] pclone: filtrer les projets de type wildcard --- uproject | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/uproject b/uproject index 13d479d..0010d14 100755 --- a/uproject +++ b/uproject @@ -311,8 +311,12 @@ elif [ "$CMD" == clone ]; then awkrun prefix="$1" ' NR <= 2 { next } { + # filtrer les projets qui ne sont pas encore créés if (substr($0, 5, 2) == " C") next repo = substr($0, 6) + # filtrer les projets de type wildcard + if (repo ~ /[\[\]\*]/) next + # enlever le prefixe if (prefix != "" && substr(repo, 1, length(prefix)) != prefix) next print repo }