4 Commits ea6e6d2334 ... 9c904a75ff

Author SHA1 Message Date
  Emmanuel B 9c904a75ff Merge pull request #26 from dennisse/fixarray 1 year ago
  Emmanuel B 18f5cabb7b Merge pull request #24 from dennisse/master 1 year ago
  Dennis Eriksen 0feb0ef995 Fix expansion issue 1 year ago
  Dennis Eriksen 122dabddc2 Use the more portable shebang `/usr/bin/env bash` 1 year ago
1 changed files with 3 additions and 3 deletions
  1. 3 3
      autopostgresqlbackup

+ 3 - 3
autopostgresqlbackup

@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # {{{ License and Copyright
 # PostgreSQL Backup Script
@@ -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