In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/coredump.sh line 20:
cmdlineargs="$@"
^--^ SC2124 (warning): Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/coredump.sh line 26:
( tee /dev/fd/3 | /usr/sbin/coredump-handler $cmdlineargs ) 3>&1 | lzop>"$diskdumpfile.lzo"
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
( tee /dev/fd/3 | /usr/sbin/coredump-handler "$cmdlineargs" ) 3>&1 | lzop>"$diskdumpfile.lzo"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/coredump.sh line 28:
exec /usr/sbin/coredump-handler $cmdlineargs
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
exec /usr/sbin/coredump-handler "$cmdlineargs"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/coredump.sh line 36:
if [ -d $extpth ]; then
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ -d "$extpth" ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/coredump.sh line 44:
[ ! -d $extpath ] ||
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ ! -d "$extpath" ] ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/coredump.sh line 45:
[ $(stat -f -c %T $extpath 2>/dev/null || echo tmpfs) = tmpfs ] ||
^-- SC2046 (warning): Quote this to prevent word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ $(stat -f -c %T "$extpath" 2>/dev/null || echo tmpfs) = tmpfs ] ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/coredump.sh line 46:
[ -d $extpath/$dumpsdir ] || mkdir $extpath/$dumpsdir || :
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -d "$extpath"/$dumpsdir ] || mkdir "$extpath"/$dumpsdir || :
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/coredump.sh line 50:
[ ! -d $extpath/$dumpsdir ] ||
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ ! -d "$extpath"/$dumpsdir ] ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/coredump.sh line 51:
[ $(echo $extpath/$dumpsdir/* | wc -w) -ge $maxextdumps ] ||
^-- SC2046 (warning): Quote this to prevent word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ $(echo "$extpath"/$dumpsdir/* | wc -w) -ge $maxextdumps ] ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/coredump.sh line 57:
[ $(echo $tmppath/$dumpsdir/* | wc -w) -ge $maxtmpdumps ] ||
^-- SC2046 (warning): Quote this to prevent word splitting.
For more information:
https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...
https://www.shellcheck.net/wiki/SC2124 -- Assigning an array to a string! A...
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...