Update host-backup.sh

tweak
This commit is contained in:
tteckster 2023-09-07 16:40:14 -04:00 committed by GitHub
parent 1e372141f1
commit 9d96fae50b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -37,12 +37,12 @@ while read -r dir; do
MSG_MAX_LENGTH=$((${#DIRNAME} + $OFFSET)) MSG_MAX_LENGTH=$((${#DIRNAME} + $OFFSET))
fi fi
CTID_MENU+=("$DIRNAME" "$dir " "OFF") CTID_MENU+=("$DIRNAME" "$dir " "OFF")
done < <(ls -d /etc/*/) done < <(ls -d /etc/*)
while [ -z "${HOST_BACKUP:+x}" ]; do while [ -z "${HOST_BACKUP:+x}" ]; do
HOST_BACKUP=$(whiptail --title "Select Directories" --checklist \ HOST_BACKUP=$(whiptail --title "Select Directories" --checklist \
"\nSelect what directories to backup:\n" \ "\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 "${CTID_MENU[@]}" 3>&1 1>&2 2>&3) || exit
for selected_dir in ${HOST_BACKUP//\"}; do for selected_dir in ${HOST_BACKUP//\"}; do