diff options
Diffstat (limited to 'bin/used_free_uidgids.sh')
-rwxr-xr-x | bin/used_free_uidgids.sh | 11 |
1 files 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 |