Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions user/local/share/towel/bin/towel-update
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,7 @@ echo "Downloading $tarball..."
echo "Verifying checksum..."
(
cd "$tmpdir"
# sha256sum -c expects the filename column to match the local file; rewrite it.
sed "s/${tarball}$/${tarball}/" "$checksum" | /usr/bin/sha256sum -c - >/dev/null 2>&1
/usr/bin/sha256sum -c "$checksum" >/dev/null 2>&1
) || {
echo 1>&2 "towel update --apply failed: sha256 checksum mismatch — download may be corrupt"
exit 1
Expand Down