pclone: filtrer les projets de type wildcard
This commit is contained in:
parent
f8f731e3ed
commit
d5f4ae25c0
4
uproject
4
uproject
|
@ -311,8 +311,12 @@ elif [ "$CMD" == clone ]; then
|
||||||
awkrun prefix="$1" '
|
awkrun prefix="$1" '
|
||||||
NR <= 2 { next }
|
NR <= 2 { next }
|
||||||
{
|
{
|
||||||
|
# filtrer les projets qui ne sont pas encore créés
|
||||||
if (substr($0, 5, 2) == " C") next
|
if (substr($0, 5, 2) == " C") next
|
||||||
repo = substr($0, 6)
|
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
|
if (prefix != "" && substr(repo, 1, length(prefix)) != prefix) next
|
||||||
print repo
|
print repo
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue