We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02164e9 commit 729f164Copy full SHA for 729f164
1 file changed
ubuntu-mainline-kernel.sh
@@ -1004,15 +1004,15 @@ EOF
1004
fi
1005
1006
if [ $check_checksum -eq 1 ]; then
1007
- shasums=( "sha256sum" "sha1sum" )
+ shasums=( "shasum" "sha256sum" "sha1sum" )
1008
1009
for shasum in "${shasums[@]}"; do
1010
xshasum=$(command -v "$shasum")
1011
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)
+ $xshasum --ignore-missing -c CHECKSUMS >$debug_target 2>&1
+ shasum_result=$?
1014
1015
- if [ "$shasum_result" -eq 0 ] || [ "$shasum_result" -ne ${#debs[@]} ]; then
+ if [ "$shasum_result" -ne 0 ]; then
1016
err "Abort, $shasum returned an error $shasum_result"
1017
exit 4
1018
else
0 commit comments