2114ae25 by Adam Heath

s/file/target/ in database extraction.

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