[FIX] restore command: DUMP_DIR is empty while using "/f.dump"

master
Olivier DOSSMANN 2017-07-07 16:05:54 +02:00
parent fa9ea2fcdb
commit 416fbce956
1 changed files with 3 additions and 0 deletions

View File

@ -256,6 +256,9 @@ test_restore() {
DUMP_FILE=`basename $ARGS`
info "Dump file found: ${DUMP_FILE}"
DUMP_DIR="${ARGS%/*}"
if [ -z "$DUMP_DIR" ]; then
DUMP_DIR="/"
fi
}
psql() {