confz

git mirror of https://ccx.te2000.cz/bzr/confz
git clone https://ccx.te2000.cz/git/confz
Log | Files | Refs

commit d43785607baa9dd2296cd90742b3d20ca865fb55
parent 663f94b86ba755e449e4dae5702d90e26fc356da
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date:   Sat, 28 Jun 2014 05:12:17 +0200

fix variable references
Diffstat:
Mzsh-functions/confz_postgresql_init | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/zsh-functions/confz_postgresql_init b/zsh-functions/confz_postgresql_init @@ -72,18 +72,18 @@ confz_postgresql_db_check() { defvar psql psql defvar createdb createdb - local out name owner encoding rest local -a opts opts+=( -U $vars[user] ) (($+vars[host])) && opts+=( --host=$vars[host] ) (($+vars[port])) && opts+=( --port=$vars[port] ) - do_command=( $createdb $opts $db -O $owner ) + do_command=( $vars[createdb] $opts $vars[db] -O $vars[owner] ) if (($+vars[encoding])); then do_command+=( -E $vars[encoding] ) fi + local out name owner encoding rest out=$( $psql $opts -lAP tuples_only=on ) || die "psql failed" while IFS='|' read name owner encoding rest; do if [[ $name == $vars[db] ]]; then