bin/pg_format

Wed, 16 Jun 2021 13:24:16 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 16 Jun 2021 13:24:16 -0500
changeset 913
72d72bafaf0f
parent 912
a409a606c665
child 915
55a1c83b3417
permissions
-rwxr-xr-x

try harder to block the sqlcomplete omni

912
a409a606c665 add autoinstall pg_format stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 #!/bin/sh
a409a606c665 add autoinstall pg_format stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 set -eu
a409a606c665 add autoinstall pg_format stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3
a409a606c665 add autoinstall pg_format stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
4 stubexec() {
a409a606c665 add autoinstall pg_format stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
5 local real_bin="$(which -a $(basename $0) | grep -v $0 | head -n 1)"
a409a606c665 add autoinstall pg_format stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
6 if [ -x "$real_bin" ]; then
a409a606c665 add autoinstall pg_format stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7 exec $real_bin $*
a409a606c665 add autoinstall pg_format stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8 fi
a409a606c665 add autoinstall pg_format stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9 }
a409a606c665 add autoinstall pg_format stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
10
a409a606c665 add autoinstall pg_format stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11 stubexec $*
a409a606c665 add autoinstall pg_format stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
12
a409a606c665 add autoinstall pg_format stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
13 cpanm -n 'https://github.com/darold/pgFormatter.git'
a409a606c665 add autoinstall pg_format stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
14 plenv rehash
a409a606c665 add autoinstall pg_format stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
15
a409a606c665 add autoinstall pg_format stub
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
16 stubexec $*

mercurial