diff --git a/pacman-zfs-snapshot.sh b/pacman-zfs-snapshot.sh index 40b4023..038c906 100755 --- a/pacman-zfs-snapshot.sh +++ b/pacman-zfs-snapshot.sh @@ -223,6 +223,10 @@ function trim_pkg_list_oneline () { break fi done + # If pkg name is still too long trim it. If there's enough + # space for an ellipsis (...) we add that to indicate we've + # trimmed the name, otherwise we just take however many + # characters of the pkg name we can get. if [[ "${#shorter_pkg_list}" -gt "${pkgs_list_max_length}" ]]; then trim_single_remaining_package_name fi