In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/zram-init line 7:
streamcache=$(($streamcachebytes / 1024))
               ^---------------^ SC2004 (style): $/${} is unnecessary on arithmetic variables.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/zram-init line 11:
while read what val kb; do
      ^--^ SC2162 (info): read without -r will mangle backslashes.
                    ^-- SC2034 (warning): kb appears unused. Verify use (or export if used externally).


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/zram-init line 12:
	[ $what != MemTotal: ] || total=$val
          ^---^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	[ "$what" != MemTotal: ] || total=$val


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/zram-init line 13:
	[ $what != CmaTotal: ] || cma=$val
          ^---^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	[ "$what" != CmaTotal: ] || cma=$val


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/zram-init line 14:
	[ $total -eq 0 ] || [ $cma -eq 0 ] || break
          ^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
                              ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	[ "$total" -eq 0 ] || [ "$cma" -eq 0 ] || break


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/zram-init line 17:
disksize=$((($total - $streamcache - $cma) * $RATIO/100))
             ^----^ SC2004 (style): $/${} is unnecessary on arithmetic variables.
                      ^----------^ SC2004 (style): $/${} is unnecessary on arithmetic variables.
                                     ^--^ SC2004 (style): $/${} is unnecessary on arithmetic variables.
                                             ^----^ SC2004 (style): $/${} is unnecessary on arithmetic variables.

For more information:
  https://www.shellcheck.net/wiki/SC2034 -- kb appears unused. Verify use (or...
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
  https://www.shellcheck.net/wiki/SC2162 -- read without -r will mangle backs...