diff --git a/lib.nix b/lib.nix index 479a5da..c76c456 100644 --- a/lib.nix +++ b/lib.nix @@ -114,7 +114,7 @@ in (lib.concatMapStrings (db: '' echo "Checking presence of database ${db.name}" dbAlreadyExists="$(echo "SELECT 1 AS result FROM pg_database WHERE datname='${db.name}';" | psql --dbname postgres | ${pkgs.gnugrep}/bin/grep -c 'exists = "1"' || true)" - echo $dbAlreadyExists + echo "$dbAlreadyExists" '') initialDatabases) else "";