From 9d96fae50bbfd485b5eae47d01eb91ff068be641 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 7 Sep 2023 16:40:14 -0400 Subject: [PATCH] Update host-backup.sh tweak --- misc/host-backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/host-backup.sh b/misc/host-backup.sh index 9a681d7a..b1c82510 100644 --- a/misc/host-backup.sh +++ b/misc/host-backup.sh @@ -37,12 +37,12 @@ while read -r dir; do MSG_MAX_LENGTH=$((${#DIRNAME} + $OFFSET)) fi CTID_MENU+=("$DIRNAME" "$dir " "OFF") -done < <(ls -d /etc/*/) +done < <(ls -d /etc/*) while [ -z "${HOST_BACKUP:+x}" ]; do HOST_BACKUP=$(whiptail --title "Select Directories" --checklist \ "\nSelect what directories to backup:\n" \ - 16 $(($MSG_MAX_LENGTH + 38)) 6 \ + 16 $(($MSG_MAX_LENGTH + 58)) 6 \ "${CTID_MENU[@]}" 3>&1 1>&2 2>&3) || exit for selected_dir in ${HOST_BACKUP//\"}; do