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

This commit is contained in:
Olivier DOSSMANN 2017-07-07 16:05:54 +02:00
parent fa9ea2fcdb
commit 416fbce956

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() {