Skip to content

Commit 0d56a26

Browse files
committed
restore - remove reference to DB_DUMP_TARGET and instead use DEFAULT_BACKUP_PATH
1 parent 635411b commit 0d56a26

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

install/usr/local/bin/restore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ bdgy="\e[100m" # Background Color Dark Gray
2929
blr="\e[101m" # Background Color Light Red
3030
boff="\e[49m" # Background Color Off
3131

32-
bootstrap_variables
3332

3433
if [ -z "${1}" ] ; then
3534
interactive_mode=true
@@ -78,7 +77,7 @@ fi
7877
get_filename() {
7978
COLUMNS=12
8079
prompt="Please select a file to restore:"
81-
options=( $(find "${DB_DUMP_TARGET}" -type f -maxdepth 1 -not -name '*.md5' -not -name '*.sha1' -print0 | sort -z | xargs -0) )
80+
options=( $(find "${DEFAULT_BACKUP_PATH}" -type f -maxdepth 2 -not -name '*.md5' -not -name '*.sha1' -print0 | sort -z | xargs -0) )
8281
PS3="$prompt "
8382
select opt in "${options[@]}" "Custom" "Quit" ; do
8483
if (( REPLY == 2 + ${#options[@]} )) ; then

0 commit comments

Comments
 (0)