Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Original command was always returning md5sum of 1. Fixed it.

  • Loading branch information...
commit e817a5a0b26a3cc35f0df02827620d822e2c4c8e 1 parent eba71db
jaredbischof authored December 18, 2012

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  bin/compute_sequence_statistics.pl
4  bin/compute_sequence_statistics.pl
@@ -107,7 +107,9 @@
107 107
   push @stats, "sequence_content\t$seq_content";
108 108
 
109 109
   # md5sum
110  
-  my $file_md5 = `md5sum '$dir/$file'` =~ /^(\S+)/;
  110
+  my $file_md5 = `md5sum '$dir/$file'`;
  111
+  chomp $file_md5;
  112
+  $file_md5 =~ s/^(\S+).*/$1/;
111 113
   push @stats, "file_checksum\t$file_md5";
112 114
 
113 115
   # tech guess

0 notes on commit e817a5a

Please sign in to comment.
Something went wrong with that request. Please try again.