mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-11 17:55:50 +00:00
Show an error in publish-auto-update.pl if both sha256sum and sha256 aren't found in PATH.
This commit is contained in:
parent
98308ecf98
commit
44ec447014
@ -58,6 +58,7 @@ $timestamp *= 1000; # Convert to milliseconds
|
||||
# locate sha256 utility
|
||||
my $SHA256 = `which sha256sum || which sha256`;
|
||||
chomp $SHA256;
|
||||
die("Can't find sha256sum or sha256\n") unless length($SHA256) > 0;
|
||||
|
||||
# SHA256 of actual update file
|
||||
my $sha256 = `git show auto-update-${commit_hash}:${project}.update | ${SHA256} | head -c 64`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user