EOF
read -p "Go ahead [Yn]?" X
[ "$X" = n ] && return 0
+ mkdir -p "$RESTORE/$TIME$BASE" || return 1
duplicity restore $OPTIONS --file-to-restore "$1" --time "$TIME" \
"pexpect+scp://$URI" "$RESTORE/$TIME$BASE/$1"
}
# $1 root
browse() {
- local X Y
+ local X
while true ; do
X="$(grep -oE "^$1[^/]*/?" < $LIST | uniq | iselect -fa)"
[ -z "$X" ] && break
if [ -z "${X##*/}" ] ; then
browse "$X"
else
- restore "$X"
+ restore "$X" || read -p "push enter" X
fi
done
}