Skip to content

Commit

Permalink
Merge pull request #74 from datamaan/fix-uninitialized-rootdir
Browse files Browse the repository at this point in the history
Fix wrong test of $flatten
  • Loading branch information
ftilmann authored Dec 6, 2016
2 parents e39bf4e + 15f3147 commit 2698013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions latexdiff-vc
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,12 @@ if ( $onlychanges ) {

if ( scalar(@revs) == 0 ) {
pod2usage("When -r option is not used, two .tex files (old and new) must be given on the command line") unless @files==2;
warn "Option -flatten should normally be combined with -r option (Results will probably not be as expected)" if $flatten;
warn "Option -flatten should normally be combined with -r option (Results will probably not be as expected)" if defined($flatten);
# compare two files
$file1=shift @files ;
} else {
# revision control
if ( $flatten ) {
if ( defined($flatten) ) {
pod2usage("Only one root file must be given if --flatten option is used with version control") if @files != 1;
$tempdir='.' if ( $flatten eq "keep-intermediate" );
print STDERR "flatten tempdir |$tempdir|\n";
Expand Down

0 comments on commit 2698013

Please sign in to comment.