From: Jeff Davis Date: Tue, 29 Jul 2014 19:29:00 +0000 (-0700) Subject: integrity-checker.pl: strip newline from hash-file input X-Git-Url: https://git.sitka.bclibraries.ca/gitweb/?p=sitka%2Fsitka-tools.git;a=commitdiff_plain;h=88d13ce677febbaf929b0fa5dc7e933ba26ddd4f integrity-checker.pl: strip newline from hash-file input --- diff --git a/deployment/integrity-checker.pl b/deployment/integrity-checker.pl index c5f7395..b35ace2 100755 --- a/deployment/integrity-checker.pl +++ b/deployment/integrity-checker.pl @@ -95,6 +95,7 @@ my %git_hashes; if ($hash_file) { open (HASHFILE, '<', $hash_file) or die "Could not open $hash_file: $!\n"; while () { + chomp; my ($hash, $file) = split(/\s+/, $_, 2); $git_hashes{$file} = $hash; }