Skip to content

Commit 729f164

Browse files
committed
fix #100: CHECKSUMS verification with sha256sum fails on Ubuntu 25.10
1 parent 02164e9 commit 729f164

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ubuntu-mainline-kernel.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,15 +1004,15 @@ EOF
10041004
fi
10051005

10061006
if [ $check_checksum -eq 1 ]; then
1007-
shasums=( "sha256sum" "sha1sum" )
1007+
shasums=( "shasum" "sha256sum" "sha1sum" )
10081008

10091009
for shasum in "${shasums[@]}"; do
10101010
xshasum=$(command -v "$shasum")
10111011
if [ -n "$xshasum" ] && [ -x "$xshasum" ]; then
1012-
# shellcheck disable=SC2094
1013-
shasum_result=$($xshasum --ignore-missing -c CHECKSUMS 2>>$debug_target | tee -a $debug_target | wc -l)
1012+
$xshasum --ignore-missing -c CHECKSUMS >$debug_target 2>&1
1013+
shasum_result=$?
10141014

1015-
if [ "$shasum_result" -eq 0 ] || [ "$shasum_result" -ne ${#debs[@]} ]; then
1015+
if [ "$shasum_result" -ne 0 ]; then
10161016
err "Abort, $shasum returned an error $shasum_result"
10171017
exit 4
10181018
else

0 commit comments

Comments
 (0)