We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eac49d0 commit 65d4744Copy full SHA for 65d4744
1 file changed
ubuntu-mainline-kernel.sh
@@ -986,15 +986,15 @@ EOF
986
fi
987
988
if [ $check_checksum -eq 1 ]; then
989
- shasums=( "sha256sum" "sha1sum" )
+ shasums=( "shasum" "sha256sum" "sha1sum" )
990
991
for shasum in "${shasums[@]}"; do
992
xshasum=$(command -v "$shasum")
993
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)
+ $xshasum --ignore-missing -c CHECKSUMS >$debug_target 2>&1
+ shasum_result=$?
996
997
- if [ "$shasum_result" -eq 0 ] || [ "$shasum_result" -ne ${#debs[@]} ]; then
+ if [ "$shasum_result" -ne 0 ]; then
998
err "Abort, $shasum returned an error $shasum_result"
999
exit 4
1000
else
0 commit comments