From 705f5bbd017851dd65354dfd0f39ca6242036783 Mon Sep 17 00:00:00 2001 From: yukkop Date: Thu, 30 Apr 2026 11:37:19 +0000 Subject: [PATCH] fix(`db-tool`): `postgres-init`: always invoke main so sourcing exports vars Previous basename guard only ran the function when invoked as the postgres-init binary, but consumer shellHooks source the script to inherit POSTGRESQL_HOST/PGURL/etc. Sourcing left the function defined but never called, leaving WIPE_PGURL/PGURL unset and breaking devshell entry in proxydoe and ruststats. --- package/db-tool/postgres-init.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package/db-tool/postgres-init.sh b/package/db-tool/postgres-init.sh index 6824ebc..2a9a89f 100644 --- a/package/db-tool/postgres-init.sh +++ b/package/db-tool/postgres-init.sh @@ -44,6 +44,4 @@ postgres_init_main() { return 0 } -if [ "$(basename "$0")" = 'postgres-init' ]; then - postgres_init_main "$@" -fi +postgres_init_main "$@"