Explorar o código

Fix expansion issue

This fixes [#25](https://github.com/k0lter/autopostgresqlbackup/issues/25)
Dennis Eriksen hai 1 ano
pai
achega
0feb0ef995
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      autopostgresqlbackup

+ 2 - 2
autopostgresqlbackup

@@ -349,11 +349,11 @@ dbdump () {
     if [ "${db_name}" = "${GLOBALS_OBJECTS}" ]; then
         cmd_prog="pg_dumpall"
         cmd_args=(--globals-only)
-        pg_args="${PGDUMPALL_ARGS[*]}"
+        pg_args=("${PGDUMPALL_ARGS[@]}")
     else
         cmd_prog="pg_dump"
         cmd_args=("${db_name}")
-        pg_args="${PGDUMP_ARGS[*]}"
+        pg_args=("${PGDUMP_ARGS[@]}")
         if [ "${CREATE_DATABASE}" = "yes" ]; then
             pg_args+=(--create)
         fi