commit 3d53a390ce1ae1e41fd8d26ed916c9e0da0c24a9 parent 04fc8ca66b509661f78034f6b108e24b6cc5794e Author: Jan Pobrislo <ccx@webprojekty.cz> Date: Sat, 28 Jun 2014 06:36:30 +0200 fix variable name Diffstat:
| M | zsh-functions/confz_postgresql_init | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/zsh-functions/confz_postgresql_init b/zsh-functions/confz_postgresql_init @@ -84,7 +84,7 @@ confz_postgresql_db_check() { fi local out name owner encoding rest - out=$( $vars[psql] $opts -lAP tuples_only=on ) || die "psql failed" + out=$( confz_do $vars[psql] $opts -lAP tuples_only=on ) || die "psql failed" while IFS='|' read name owner encoding rest; do if [[ $name == $vars[db] ]]; then [[ $owner == $vars[owner] ]] || \ @@ -113,7 +113,7 @@ confz_postgresql_schema_check() { (($+vars[host])) && opts+=( --host=$vars[host] ) (($+vars[port])) && opts+=( --port=$vars[port] ) - out=$( confz_do $psql $opts -AP tuples_only=on -c '\d' $vars[db] ) || die "psql failed" + out=$( confz_do $vars[psql] $opts -AP tuples_only=on -c '\d' $vars[db] ) || die "psql failed" if [[ -z $out ]]; then fail_reason="the schema for ${(qqq)db} is empty" return 1 @@ -131,5 +131,5 @@ confz_postgresql_schema_do() { (($+vars[host])) && opts+=( --host=$vars[host] ) (($+vars[port])) && opts+=( --port=$vars[port] ) - confz_do $psql $opts -1 $vars[db] -f - <<<$vars[psql_input] + confz_do $vars[psql] $opts -1 $vars[db] -f - <<<$vars[psql_input] }