Update host-backup.sh

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

View File

@ -17,7 +17,7 @@ EOF
} }
header_info header_info
while true; do while true; do
read -p "This will Backup Selected Directories. Proceed (y/n)?" yn read -p "This will backup specific files and directories within the 'etc' directory. Proceed (y/n)?" yn
case $yn in case $yn in
[Yy]*) break ;; [Yy]*) break ;;
[Nn]*) exit ;; [Nn]*) exit ;;
@ -40,8 +40,8 @@ while read -r dir; do
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 "SELECTIONS" --checklist \
"\nSelect what directories to backup:\n" \ "\nSelect what files/directories to backup:\n" \
16 $(($MSG_MAX_LENGTH + 58)) 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