Use $INDENT instead of `which` to find the indent binary

Per discussion after my commit o yesterday.
pull/1/head
Alvaro Herrera 15 years ago
parent bc76695c4c
commit a5dfc94c9a
  1. 5
      src/tools/pgindent/pgindent

@ -21,7 +21,10 @@ fi
TYPEDEFS="$1"
shift
INDENT=`which indent`
if [ -z "$INDENT" ]
then
INDENT=indent
fi
trap "rm -f /tmp/$$ /tmp/$$a" 0 1 2 3 15
entab </dev/null >/dev/null

Loading…
Cancel
Save