confz

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

commit c4b2b51d2e7c05598bf30cb8900b199ec03a7a24
parent 246962a54544261702a3143bf415f0334be5bbdb
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date:   Sat, 28 Jun 2014 07:08:47 +0200

fix variable name
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 @@ -148,10 +148,10 @@ confz_postgresql_schema_check() { 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" + fail_reason="the schema for ${(qqq)vars[db]} is empty" return 1 elif [[ $out != $vars[schema] ]]; then - die "the schema for ${(qqq)db} differs:"$'\n'$( \ + die "the schema for ${(qqq)vars[db]} differs:"$'\n'$( \ diff -u <(print -r - $vars[schema]) <(print -r - $out) ) fi return 0