integrity-checker.pl: strip newline from hash-file input
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Tue, 29 Jul 2014 19:29:00 +0000 (12:29 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Tue, 29 Jul 2014 19:29:00 +0000 (12:29 -0700)
deployment/integrity-checker.pl

index c5f7395..b35ace2 100755 (executable)
@@ -95,6 +95,7 @@ my %git_hashes;
 if ($hash_file) {
     open (HASHFILE, '<', $hash_file) or die "Could not open $hash_file: $!\n";
     while (<HASHFILE>) {
+        chomp;
         my ($hash, $file) = split(/\s+/, $_, 2);
         $git_hashes{$file} = $hash;
     }