creatensis.pl: fix md5sum verification on filenames with a plus

This commit is contained in:
Juergen E. Fischer 2017-04-05 11:10:14 +02:00
parent ee29fa66f9
commit 85d59e648a

View File

@ -166,9 +166,9 @@ foreach my $p ( keys %pkgs ) {
if( exists $md5{$file} ) {
my $md5;
open F, "md5sum $file|";
open F, "md5sum '$file'|";
while(<F>) {
if( /^(\S+)\s+\*?$file$/ ) {
if( /^(\S+)\s+\*?(.*)$/ && $2 eq $file ) {
$md5 = $1;
}
}