Browse Source

Fixes to allow publish-auto-update.sh to work with sha256sum versions that add trailing characters.

blockminter-updates
CalDescent 4 years ago
parent
commit
30160e2843
  1. 3
      tools/publish-auto-update.pl

3
tools/publish-auto-update.pl

@ -57,9 +57,10 @@ $timestamp *= 1000; # Convert to milliseconds
# locate sha256 utility # locate sha256 utility
my $SHA256 = `which sha256sum || which sha256`; my $SHA256 = `which sha256sum || which sha256`;
chomp $SHA256;
# SHA256 of actual update file # SHA256 of actual update file
my $sha256 = `git show auto-update-${commit_hash}:${project}.update | ${SHA256}`; my $sha256 = `git show auto-update-${commit_hash}:${project}.update | ${SHA256} | head -c 64`;
die("Can't calculate SHA256 of ${project}.update\n") unless $sha256 =~ m/(\S{64})/; die("Can't calculate SHA256 of ${project}.update\n") unless $sha256 =~ m/(\S{64})/;
chomp $sha256; chomp $sha256;

Loading…
Cancel
Save