In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 6:
. /lib/rcscripts/sh/error.sh
  ^------------------------^ SC1091 (info): Not following: /lib/rcscripts/sh/error.sh was not specified as input (see shellcheck -x).


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 9:
. $rc || error "Failed to source %c$rc%c"
  ^-^ SC1090 (warning): ShellCheck can't follow non-constant source. Use a directive to specify location.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 12:
. $rc || error "Failed to source '$rc'"
  ^-^ SC1090 (warning): ShellCheck can't follow non-constant source. Use a directive to specify location.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 16:
	local name= date= type= manfid= oemid= serial= fwrev= hwrev= cid= csd=
        ^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
                   ^-- SC1007 (warning): Remove space after = if trying to assign a value (for empty string, use var='' ... ).
                         ^-- SC1007 (warning): Remove space after = if trying to assign a value (for empty string, use var='' ... ).
                               ^-- SC1007 (warning): Remove space after = if trying to assign a value (for empty string, use var='' ... ).
                                       ^-- SC1007 (warning): Remove space after = if trying to assign a value (for empty string, use var='' ... ).
                                              ^-- SC1007 (warning): Remove space after = if trying to assign a value (for empty string, use var='' ... ).
                                                      ^-- SC1007 (warning): Remove space after = if trying to assign a value (for empty string, use var='' ... ).
                                                             ^-- SC1007 (warning): Remove space after = if trying to assign a value (for empty string, use var='' ... ).
                                                                    ^-- SC1007 (warning): Remove space after = if trying to assign a value (for empty string, use var='' ... ).
                                                                         ^-- SC1007 (warning): Remove space after = if trying to assign a value (for empty string, use var='' ... ).


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 17:
	local var
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 19:
	[ $# -eq 1 ] && [ "$1" ] || error "print_common_info: missing argument"
                     ^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 20:
	[ -d $1 ] || error "Directory '$1' not found"
             ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	[ -d "$1" ] || error "Directory '$1' not found"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 23:
		[ ! -r $1/device/$var ] || read $var <$1/device/$var
                       ^-- SC2086 (info): Double quote to prevent globbing and word splitting.
                                           ^--^ SC2162 (info): read without -r will mangle backslashes.
                                                ^--^ SC2229 (warning): This does not read 'var'. Remove $/${} for that, or use ${var?} to quiet.
                                                      ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		[ ! -r "$1"/device/$var ] || read $var <"$1"/device/$var


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 26:
	printf "name:   %s\n" ${name:-NA}
                              ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	printf "name:   %s\n" "${name:-NA}"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 27:
	printf "date:   %s\n" ${date:-NA}
                              ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	printf "date:   %s\n" "${date:-NA}"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 28:
	printf "type:   %s\n" ${type:-NA}
                              ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	printf "type:   %s\n" "${type:-NA}"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 29:
	printf "oemid:  %s\n" ${oemid:-NA}
                              ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	printf "oemid:  %s\n" "${oemid:-NA}"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 30:
	printf "fwrev:  %s\n" ${fwrev:-NA}
                              ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	printf "fwrev:  %s\n" "${fwrev:-NA}"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 31:
	printf "manfid: %s\n" ${manfid:-NA}
                              ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	printf "manfid: %s\n" "${manfid:-NA}"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 32:
	printf "serial: %s\n" ${serial:-NA}
                              ^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	printf "serial: %s\n" "${serial:-NA}"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 33:
	printf "hwrev:  %s\n" ${hwrev:-NA}
                              ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	printf "hwrev:  %s\n" "${hwrev:-NA}"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 34:
	printf "cid: %s\n" ${cid:-NA}
                           ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	printf "cid: %s\n" "${cid:-NA}"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 35:
	printf "csd: %s\n" ${csd:-NA}
                           ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	printf "csd: %s\n" "${csd:-NA}"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 39:
	print_common_info $1
                          ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	print_common_info "$1"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 40:
	local scr=
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 41:
	read scr < $1/device/scr
        ^--^ SC2162 (info): read without -r will mangle backslashes.
                   ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	read scr < "$1"/device/scr


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 42:
	printf "scr: %s\n" ${scr:-NA}
                           ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	printf "scr: %s\n" "${scr:-NA}"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 46:
	print_common_info $1
                          ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	print_common_info "$1"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 47:
	local rev= device=/dev/
        ^---------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
                  ^-- SC1007 (warning): Remove space after = if trying to assign a value (for empty string, use var='' ... ).


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 48:
	local mmcreadblock=mmcreadblock mmchealth=mmchealth
        ^-- SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 49:
	local udevadm=udevadm
        ^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 51:
	read rev <$1/device/rev
        ^--^ SC2162 (info): read without -r will mangle backslashes.
                  ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	read rev <"$1"/device/rev


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 52:
	printf "EXT_CSD_REV: %s\n" $rev
                                   ^--^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	printf "EXT_CSD_REV: %s\n" "$rev"


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 54:
	!exists $udevadm ||
         ^-- SC1035 (error): You are missing a required space after the !.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 55:
		device=/dev/$(udevadm info --query=name $1 2>/dev/null) || :
                                                        ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		device=/dev/$(udevadm info --query=name "$1" 2>/dev/null) || :


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 57:
	[ $device = /dev/ ] || {
          ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	[ "$device" = /dev/ ] || {


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 59:
			$mmcreadblock $device 8 | sed -e "s/^/EXTCSD: /" || :
                                      ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			$mmcreadblock "$device" 8 | sed -e "s/^/EXTCSD: /" || :


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 61:
		! exists $mmchealth || $mmchealth $device || :
                                                  ^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		! exists $mmchealth || $mmchealth "$device" || :


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 75:
			read type <$sd_base$i/device/type
                        ^--^ SC2162 (info): read without -r will mangle backslashes.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/sdcard-report.sh line 89:
		i=$(($i + 1))
                     ^-- SC2004 (style): $/${} is unnecessary on arithmetic variables.

For more information:
  https://www.shellcheck.net/wiki/SC1035 -- You are missing a required space ...
  https://www.shellcheck.net/wiki/SC1007 -- Remove space after = if trying to...
  https://www.shellcheck.net/wiki/SC1090 -- ShellCheck can't follow non-const...