Browse Source

Merge pull request #26 from dennisse/fixarray

Fix expansion issue
Emmanuel B 1 year ago
parent
commit
9c904a75ff
1 changed files with 2 additions and 2 deletions
  1. 2 2
      autopostgresqlbackup

+ 2 - 2
autopostgresqlbackup

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