From 35f572fe97bc71c5f5851c918448aaa2520e9b06 Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Mon, 6 Mar 2023 02:55:21 +0100 Subject: [PATCH] fix(script): fix if clause (#1) --- pacman-zfs-snapshot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pacman-zfs-snapshot.sh b/pacman-zfs-snapshot.sh index cbf5c06..5e37c6f 100755 --- a/pacman-zfs-snapshot.sh +++ b/pacman-zfs-snapshot.sh @@ -183,10 +183,10 @@ function trim_pkg_list_oneline () { break fi done - if [[ "${#shorter_pkg_list}" -gt "${pkgs_list_max_length}" ]]; do + if [[ "${#shorter_pkg_list}" -gt "${pkgs_list_max_length}" ]]; then # If this is still too long we empty the package list shorter_pkg_list='' - done + fi trimmed_pkg_list_oneline="${shorter_pkg_list}" }