Commit 74570db9 authored by Andrew Dunstan's avatar Andrew Dunstan

Fix a logic bug in pgindent.

parent a0dc23f2
...@@ -37,7 +37,7 @@ run_build($code_base) if ($build); ...@@ -37,7 +37,7 @@ run_build($code_base) if ($build);
# command line option wins, then first non-option arg, # command line option wins, then first non-option arg,
# then environment (which is how --build sets it) , # then environment (which is how --build sets it) ,
# then locations. based on current dir, then default location # then locations. based on current dir, then default location
$typedefs_file ||= shift if @ARGV && $ARGV[0] !~ /\\.[ch]$/; $typedefs_file ||= shift if @ARGV && $ARGV[0] !~ /\.[ch]$/;
$typedefs_file ||= $ENV{PGTYPEDEFS}; $typedefs_file ||= $ENV{PGTYPEDEFS};
# build mode sets PGINDENT and PGENTAB # build mode sets PGINDENT and PGENTAB
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment