In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/vmstatus.sh line 6:
local pd tag value rest rollup empty
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/vmstatus.sh line 9:
local Rss=-1 Pss=-1 Pss_Dirty=-1 Shared_Clean=-1 Shared_Dirty=-1 Private_Clean=-1 Private_Dirty=-1 Swap=-1 SwapPss=-1
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/vmstatus.sh line 15:
[ -d $pd ] || return 0
^-^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -d "$pd" ] || return 0
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/vmstatus.sh line 20:
while read tag value rest; do
^--^ SC2162 (info): read without -r will mangle backslashes.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/vmstatus.sh line 56:
done<$rollup || return 0
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
done<"$rollup" || return 0
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/vmstatus.sh line 61:
read comm <$pd/comm || return 0
^--^ SC2162 (info): read without -r will mangle backslashes.
^-^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
read comm <"$pd"/comm || return 0
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/vmstatus.sh line 64:
$Rss $Pss $Pss_Dirty $Shared_Clean $Shared_Dirty $Private_Clean $Private_Dirty $Swap $SwapPss $1 $comm
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
"$Rss" "$Pss" "$Pss_Dirty" "$Shared_Clean" "$Shared_Dirty" "$Private_Clean" "$Private_Dirty" "$Swap" "$SwapPss" "$1" "$comm"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/vmstatus.sh line 66:
[ $Pss -gt 0 ] || Pss=0
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$Pss" -gt 0 ] || Pss=0
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/vmstatus.sh line 67:
[ $SwapPss -gt 0 ] || SwapPss=0
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$SwapPss" -gt 0 ] || SwapPss=0
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/vmstatus.sh line 69:
TOTAL_PSS=$(($TOTAL_PSS + $Pss + $SwapPss))
^--------^ SC2004 (style): $/${} is unnecessary on arithmetic variables.
^--^ SC2004 (style): $/${} is unnecessary on arithmetic variables.
^------^ SC2004 (style): $/${} is unnecessary on arithmetic variables.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/vmstatus.sh line 82:
vmstatus $p
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
vmstatus "$p"
For more information:
https://www.shellcheck.net/wiki/SC3043 -- In POSIX sh, 'local' is undefined.
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
https://www.shellcheck.net/wiki/SC2162 -- read without -r will mangle backs...