diff --git a/bin/pg_format b/bin/pg_format --- a/bin/pg_format +++ b/bin/pg_format @@ -2,9 +2,9 @@ set -eu . ~/.lib/sh/stubexec.sh -stubexec "$@" - -cpanm -n 'https://github.com/darold/pgFormatter.git' -plenv rehash || : +install_it() { + cpanm -n 'https://github.com/darold/pgFormatter.git' + plenv rehash || : +} stubexec "$@"