dont print names on single entries
This commit is contained in:
@@ -44,6 +44,8 @@ for (( i=1; i<=$#; i++ )); do
|
|||||||
what+=( "${!i}" )
|
what+=( "${!i}" )
|
||||||
done
|
done
|
||||||
[[ -z "${what[@]}" ]] && what="."
|
[[ -z "${what[@]}" ]] && what="."
|
||||||
|
# If only one entry, dont print the name
|
||||||
|
[[ "${#what[@]}" -eq 1 ]] && SUMMARY=1
|
||||||
|
|
||||||
if [[ "$SUMMARY" -eq 1 ]]; then
|
if [[ "$SUMMARY" -eq 1 ]]; then
|
||||||
# Display one line
|
# Display one line
|
||||||
|
|||||||
Reference in New Issue
Block a user