In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/fw_sign_verify.sh line 9:
tar -xf "$1" $target.aes -C $p
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
tar -xf "$1" "$target".aes -C $p
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/fw_sign_verify.sh line 10:
file=$(echo $target | cut -d'.' -f 0)
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
file=$(echo "$target" | cut -d'.' -f 0)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/fw_sign_verify.sh line 11:
tar -xOf "$1" $file.aes | openssl dgst -sha256 | cut -d' ' -f2 > $p/$file.sha1
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
tar -xOf "$1" "$file".aes | openssl dgst -sha256 | cut -d' ' -f2 > $p/"$file".sha1
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/fw_sign_verify.sh line 12:
sum1=`cat $p/$target.aes $p/keysuit.enc $p/certificate.info $p/$file.sha1 | openssl dgst -sha256 | cut -d' ' -f2`
^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
sum1=$(cat $p/"$target".aes $p/keysuit.enc $p/certificate.info $p/"$file".sha1 | openssl dgst -sha256 | cut -d' ' -f2)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/fw_sign_verify.sh line 18:
sum2=`cat $p/sign.sha1`
^----------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
Did you mean:
sum2=$(cat $p/sign.sha1)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/fw_sign_verify.sh line 20:
echo $sum1
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo "$sum1"
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/fw_sign_verify.sh line 21:
echo $sum2
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo "$sum2"
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/fw_sign_verify.sh line 23:
if [ "$sum1" == "$sum2" ] ; then
^-- SC3014 (warning): In POSIX sh, == in place of = is undefined.
For more information:
https://www.shellcheck.net/wiki/SC3014 -- In POSIX sh, == in place of = is ...
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
https://www.shellcheck.net/wiki/SC2006 -- Use $(...) notation instead of le...