mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 17:23:36 +02:00
pgit.sh: Don't show fat header for one project
The fat marker with counter (# ==== [1/1] Fetching ...) is distracting if shown for only one project, so only show a regular marker without counter. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
b758bc80cf
commit
b9e1f91ff6
1 changed files with 12 additions and 2 deletions
|
|
@ -18,14 +18,24 @@ fatal()
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
counter()
|
||||||
|
{
|
||||||
|
[ "$n_projects" != 1 ] || return
|
||||||
|
echo " [$cur/$n_projects]"
|
||||||
|
}
|
||||||
|
|
||||||
marker()
|
marker()
|
||||||
{
|
{
|
||||||
log "# ------------- [$cur/$n_projects] $@"
|
log "# -------------$(counter) $@"
|
||||||
}
|
}
|
||||||
|
|
||||||
fat_marker()
|
fat_marker()
|
||||||
{
|
{
|
||||||
log "# ==================================================== [$cur/$n_projects] $@"
|
if [ "$n_projects" = 1 ]; then
|
||||||
|
marker "$@"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
log "# ====================================================$(counter) $@"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue