dont print names on single entries

This commit is contained in:
Ville Rantanen
2017-04-26 10:00:18 +03:00
parent fea8c9d418
commit 1507af6724

View File

@@ -44,6 +44,8 @@ for (( i=1; i<=$#; i++ )); do
what+=( "${!i}" )
done
[[ -z "${what[@]}" ]] && what="."
# If only one entry, dont print the name
[[ "${#what[@]}" -eq 1 ]] && SUMMARY=1
if [[ "$SUMMARY" -eq 1 ]]; then
# Display one line