diff --git a/scripts/postgresql b/scripts/postgresql index 09535ab..86e3e91 100755 --- a/scripts/postgresql +++ b/scripts/postgresql @@ -6,7 +6,7 @@ scriptDir="$(dirname "$0")" function readConfig() { local $config - + if [[ -r "${scriptDir}/../config/postgresql.cfg" ]]; then config="$(readlink -f "${scriptDir}/../config/postgresql.cfg")" else @@ -20,7 +20,7 @@ function readConfig() { if [[ "${vals[0]}" -ge 10 ]]; then echo "${vals[@]}" fi - done < "$config"" + done < "$config" } function runBackups() {