public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] data/api:master commit in: bin/
Date: Thu, 18 Nov 2021 11:19:47 +0000 (UTC)	[thread overview]
Message-ID: <1636983979.858cf068305e58a918ad60cc0337b8dc13e75cf5.ulm@gentoo> (raw)

commit:     858cf068305e58a918ad60cc0337b8dc13e75cf5
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 15 08:03:07 2021 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Nov 15 13:46:19 2021 +0000
URL:        https://gitweb.gentoo.org/data/api.git/commit/?id=858cf068

used_free_uidgids.sh: Make the recommended IDs stand out

By moving this output to the end and adding some colour.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 bin/used_free_uidgids.sh | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/bin/used_free_uidgids.sh b/bin/used_free_uidgids.sh
index 1838f11..dae2517 100755
--- a/bin/used_free_uidgids.sh
+++ b/bin/used_free_uidgids.sh
@@ -305,9 +305,14 @@ for r in "${selection_ranges[@]}"; do
 	(( free_total_pair += freepair ))
 done
 
-echo "Recommended GID only: ${gidonly:-${uidgidboth:-none}}"
-echo "Recommended UID only: ${uidonly:=${uidgidboth:-none}}"
-echo "Recommended UID+GID pair: ${uidgidboth:-none}"
 echo "Free UIDs: ${free_total_uid}"
 echo "Free GIDs: ${free_total_gid}"
 echo "Free UID+GID pairs: ${free_total_pair}"
+echo
+
+for out in "Recommended GID only: ${gidonly:-${uidgidboth:-none}}" \
+	   "Recommended UID only: ${uidonly:-${uidgidboth:-none}}" \
+	   "Recommended UID+GID pair: ${uidgidboth:-none}"; do
+    [[ ${out} == *none ]] && colour=${colour_USED} || colour=${colour_FREE}
+    echo -e "${out%%: *}: ${colour}${out#*: }${colour_RESET}"
+done


             reply	other threads:[~2021-11-18 11:19 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-18 11:19 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-07-25  2:24 [gentoo-commits] data/api:master commit in: bin/ Sam James
2021-11-13 20:09 Ulrich Müller
2021-11-11 10:47 Ulrich Müller
2021-02-17 15:39 Joonas Niilola
2021-02-10 11:13 Joonas Niilola
2021-02-10 11:13 Joonas Niilola
2021-02-09 17:23 Joonas Niilola
2021-02-09  7:17 Alec Warner
2021-01-24 10:12 Michał Górny
2021-01-24 10:12 Michał Górny
2019-12-08 20:59 Michał Górny
2019-09-11  8:21 Michał Górny
2019-09-11  8:02 Michał Górny
2019-08-24 17:58 Michał Górny
2018-08-07  7:52 Michał Górny
2015-12-26 17:42 Alex Legler
2015-08-15 22:01 Alex Legler
2015-08-15 13:14 Alex Legler
2015-08-15 13:11 Alex Legler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1636983979.858cf068305e58a918ad60cc0337b8dc13e75cf5.ulm@gentoo \
    --to=ulm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox