Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a5dfc94

Browse files
committed
Use $INDENT instead of which to find the indent binary
Per discussion after my commit o yesterday.
1 parent bc76695 commit a5dfc94

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tools/pgindent/pgindent

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ fi
2121
TYPEDEFS="$1"
2222
shift
2323

24-
INDENT=`which indent`
24+
if [ -z "$INDENT" ]
25+
then
26+
INDENT=indent
27+
fi
2528

2629
trap "rm -f /tmp/$$ /tmp/$$a" 0 1 2 3 15
2730
entab </dev/null >/dev/null

0 commit comments

Comments
 (0)