s/file/target/ in database extraction.
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -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 | (*) | ... | ... |
-
Please register or sign in to post a comment