Skip to content

Commit

Permalink
remove -f check for epub assets, due to cygwin issue. check was redun…
Browse files Browse the repository at this point in the history
…dant in any case (brucemiller#1164)
  • Loading branch information
dginev authored and brucemiller committed Jun 27, 2019
1 parent 833cb7c commit cbd9a2b
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions lib/LaTeXML/Post/Manifest/Epub.pm
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,13 @@ sub finalize {
my @styles = ();
my @images = ();
find({ no_chdir => 1, wanted => sub {
my $OPS_abspath = $_;
if (-f $OPS_abspath) {
my $OPS_pathname = pathname_relative($OPS_abspath, $OPS_directory);
if ($OPS_pathname =~ /\.css$/) {
push(@styles, $OPS_pathname); }
elsif ($OPS_pathname =~ /\.png$/) {
push(@images, $OPS_pathname); }
else { } # skip any other resources
}
my $OPS_abspath = $_;
my $OPS_pathname = pathname_relative($OPS_abspath, $OPS_directory);
if ($OPS_pathname =~ /\.css$/) {
push(@styles, $OPS_pathname); }
elsif ($OPS_pathname =~ /\.png$/) {
push(@images, $OPS_pathname); }
else { } # skip any other resources
} }, $OPS_directory);

my $manifest = $$self{opf_manifest};
Expand Down

0 comments on commit cbd9a2b

Please sign in to comment.