Skip to content

Commit

Permalink
tools: Add check if the checksum file exists
Browse files Browse the repository at this point in the history
This ensures that we have the release captains checksum file where we
expect it to be and gives a little hint where to get it if needed.

Signed-off-by: Peter Neuroth <[email protected]>
  • Loading branch information
nepet authored and rustyrussell committed Sep 13, 2023
1 parent 7611720 commit e76c14c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,15 @@ fi

if [ "$VERIFY_RELEASE" = "true" ]; then
echo "Verifying Release"
sumfile="SHA256SUMS-${VERSION}"
# Ensure that the release captains checksum exists at the desired location.
if [ ! -f "$sumfile" ]; then
echo "Can not find release captains checksum file \"$sumfile\"".
echo "You can download it from the repository at:"
echo "https://github.com/ElementsProject/lightning/releases/tag/$VERSION"
echo "Place it under the project root as \"$sumfile\"."
exit 1
fi
cd release/
# Creating fake Fedora tar for SHA256SUMS match
# It is important for zipfile checksum match
Expand Down

0 comments on commit e76c14c

Please sign in to comment.