# HG changeset patch # User Meredith Howard # Date 1623865160 18000 # Node ID a409a606c6650786cd995b9eeed31a11d2d3495d # Parent abfa73c8cfda97fb7185d8dcc09119e412c5432f add autoinstall pg_format stub diff --git a/bin/pg_format b/bin/pg_format new file mode 100755 --- /dev/null +++ b/bin/pg_format @@ -0,0 +1,16 @@ +#!/bin/sh +set -eu + +stubexec() { + local real_bin="$(which -a $(basename $0) | grep -v $0 | head -n 1)" + if [ -x "$real_bin" ]; then + exec $real_bin $* + fi +} + +stubexec $* + +cpanm -n 'https://github.com/darold/pgFormatter.git' +plenv rehash + +stubexec $*