Skip to content

Commit 65d4744

Browse files
committed
fix #100: CHECKSUMS verification with sha256sum fails on Ubuntu 25.10
1 parent eac49d0 commit 65d4744

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
@@ -986,15 +986,15 @@ EOF
986986
fi
987987

988988
if [ $check_checksum -eq 1 ]; then
989-
shasums=( "sha256sum" "sha1sum" )
989+
shasums=( "shasum" "sha256sum" "sha1sum" )
990990

991991
for shasum in "${shasums[@]}"; do
992992
xshasum=$(command -v "$shasum")
993993
if [ -n "$xshasum" ] && [ -x "$xshasum" ]; then
994-
# shellcheck disable=SC2094
995-
shasum_result=$($xshasum --ignore-missing -c CHECKSUMS 2>>$debug_target | tee -a $debug_target | wc -l)
994+
$xshasum --ignore-missing -c CHECKSUMS >$debug_target 2>&1
995+
shasum_result=$?
996996

997-
if [ "$shasum_result" -eq 0 ] || [ "$shasum_result" -ne ${#debs[@]} ]; then
997+
if [ "$shasum_result" -ne 0 ]; then
998998
err "Abort, $shasum returned an error $shasum_result"
999999
exit 4
10001000
else

0 commit comments

Comments
 (0)