2114ae25 by Adam Heath

s/file/target/ in database extraction.

1 parent 36b92788
......@@ -17,11 +17,11 @@ for item in "$@"; do
remote="${item#*:}"
case "$target" in
(*.sql.gz)
database="$(basename "$file" .sql.gz)"
database="$(basename "$target" .sql.gz)"
_pgdump "$database" | gzip -9v > "/workspace/exports/$database.sql.gz"
;;
(*.sql)
database="$(basename "$file" .sql)"
database="$(basename "$target" .sql)"
_pgdump "$database" > "/workspace/exports/$database.sql"
;;
(*)
......