From 44ec4470147875efe04cca9c7c743db4d3d9cfa3 Mon Sep 17 00:00:00 2001 From: CalDescent Date: Thu, 1 Apr 2021 08:27:56 +0100 Subject: [PATCH] Show an error in publish-auto-update.pl if both sha256sum and sha256 aren't found in PATH. --- tools/publish-auto-update.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/publish-auto-update.pl b/tools/publish-auto-update.pl index 0c7a47d6..ad43b2f4 100755 --- a/tools/publish-auto-update.pl +++ b/tools/publish-auto-update.pl @@ -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`;