From 0d56a26f0fc03604efe7899f5c0839ff5fcaaca2 Mon Sep 17 00:00:00 2001 From: Dave Conroy Date: Thu, 9 Nov 2023 08:03:39 -0800 Subject: [PATCH] restore - remove reference to DB_DUMP_TARGET and instead use DEFAULT_BACKUP_PATH --- install/usr/local/bin/restore | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install/usr/local/bin/restore b/install/usr/local/bin/restore index d75faee..c378c73 100755 --- a/install/usr/local/bin/restore +++ b/install/usr/local/bin/restore @@ -29,7 +29,6 @@ bdgy="\e[100m" # Background Color Dark Gray blr="\e[101m" # Background Color Light Red boff="\e[49m" # Background Color Off -bootstrap_variables if [ -z "${1}" ] ; then interactive_mode=true @@ -78,7 +77,7 @@ fi get_filename() { COLUMNS=12 prompt="Please select a file to restore:" - options=( $(find "${DB_DUMP_TARGET}" -type f -maxdepth 1 -not -name '*.md5' -not -name '*.sha1' -print0 | sort -z | xargs -0) ) + options=( $(find "${DEFAULT_BACKUP_PATH}" -type f -maxdepth 2 -not -name '*.md5' -not -name '*.sha1' -print0 | sort -z | xargs -0) ) PS3="$prompt " select opt in "${options[@]}" "Custom" "Quit" ; do if (( REPLY == 2 + ${#options[@]} )) ; then