bin/pg_format

changeset 915
55a1c83b3417
parent 912
a409a606c665
child 932
f87943eb16aa
--- a/bin/pg_format
+++ b/bin/pg_format
@@ -1,16 +1,10 @@
 #!/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
-}
+. ~/.lib/sh/stubexec.sh
 
 stubexec $*
 
 cpanm -n 'https://github.com/darold/pgFormatter.git'
-plenv rehash
+plenv rehash || :
 
 stubexec $*

mercurial