In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 5:
. $rc || error "Failed to source '$rc'"
^-^ SC1090 (warning): ShellCheck can't follow non-constant source. Use a directive to specify location.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 8:
. $rc || error "Failed to source '$rc'"
^-^ SC1090 (warning): ShellCheck can't follow non-constant source. Use a directive to specify location.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 22:
[ $# -eq 2 ] && [ "$1" ] && [ "$2" ] ||
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 25:
local dirty_var=$2
^-------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
local dirty_var="$2"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 29:
eval $1=\$dirty_var
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
eval "$1"=\$dirty_var
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 33:
[ $# -eq 2 ] && [ "$1" ] && [ "$2" ] ||
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 36:
local dirty_var=$2
^-------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
local dirty_var="$2"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 40:
eval $1=\$dirty_var
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
eval "$1"=\$dirty_var
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 44:
[ $# -eq 2 ] && [ "$1" ] && [ "$2" ] ||
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 47:
local dirty_var=$2
^-------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
local dirty_var="$2"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 51:
eval $1=\$dirty_var
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
eval "$1"=\$dirty_var
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 56:
[ $# -eq 1 ] && [ "$1" ] || error "dir_empty: missing argument"
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 57:
[ -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/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 59:
local f ff
^--------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 61:
ff=$1/*
^--^ SC2125 (warning): Brace expansions and globs are literal in assignments. Quote it or use an array.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 69:
[ $# -eq 2 ] && [ "$1" ] && [ "$2" ] ||
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 72:
title $1
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
title "$1"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 74:
if dir_empty $2; then
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if dir_empty "$2"; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 77:
local f
^-----^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 79:
for f in $(find $2 -type f); do
^----------------^ SC2044 (warning): For loops over find output are fragile. Use find -exec or a while read loop.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
for f in $(find "$2" -type f); do
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 80:
echo $f
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo "$f"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 83:
sed -e 's/>/>\n/g' $f
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
sed -e 's/>/>\n/g' "$f"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 85:
sed -re '1,2d' -e "$CENSOR_PASSWD_EXPR" $f
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
sed -re '1,2d' -e "$CENSOR_PASSWD_EXPR" "$f"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 170:
if [ $_usage_ -eq -1 ]; then
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "$_usage_" -eq -1 ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 173:
echo "Total Uptime: $(($_usage_ / 86400)) days"
^------^ SC2004 (style): $/${} is unnecessary on arithmetic variables.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 176:
if [ $_bootcount_ -eq -1 ]; then
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "$_bootcount_" -eq -1 ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 182:
if [ $_rebootcount_ -eq -1 ]; then
^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "$_rebootcount_" -eq -1 ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 193:
local system= services= addons= acap=
^-- 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='' ... ).
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 194:
local memorydir=/sys/fs/cgroup/memory
^-------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 195:
local memoryfile=memory.max_usage_in_bytes
^--------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 196:
local servicesfile=$memorydir/system.slice/$memoryfile
^----------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 197:
local addonsfile=$memorydir/extension.slice/$memoryfile
^--------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 198:
local acapfile=$memorydir/extension.slice/extension-addon.slice/$memoryfile
^------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 200:
[ ! -r $memorydir/$memoryfile ] || read system <$memorydir/$memoryfile
^--^ SC2162 (info): read without -r will mangle backslashes.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 201:
[ ! -r $servicesfile ] || read services <$servicesfile
^--^ SC2162 (info): read without -r will mangle backslashes.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 202:
[ ! -r $addonsfile ] || read addons <$addonsfile
^--^ SC2162 (info): read without -r will mangle backslashes.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 203:
[ ! -r $acapfile ] || read acap <$acapfile
^--^ SC2162 (info): read without -r will mangle backslashes.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 204:
echo "System-Peak: "$system
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo "System-Peak: ""$system"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 205:
echo "Services-Peak: "$services
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo "Services-Peak: ""$services"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 206:
echo "Addons-Peak: "$addons
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo "Addons-Peak: ""$addons"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 207:
echo "Acaps-Peak: "$acap
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo "Acaps-Peak: ""$acap"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 217:
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/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 218:
local scr= var
^------------^ 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/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 220:
[ $# -eq 1 ] && [ "$1" ] || error "print_card_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/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 221:
[ -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/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 224:
[ ! -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/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 227:
printf "name: %6s date: %s\n" ${name:-NA} ${date:-NA}
^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
printf "name: %6s date: %s\n" "${name:-NA}" "${date:-NA}"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 228:
printf "type: %6s manfid: %s\n" ${type:-NA} ${manfid:-NA}
^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
printf "type: %6s manfid: %s\n" "${type:-NA}" "${manfid:-NA}"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 229:
printf "oemid: %6s serial: %s\n" ${oemid:-NA} ${serial:-NA}
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
printf "oemid: %6s serial: %s\n" "${oemid:-NA}" "${serial:-NA}"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 230:
printf "fwrev: %6s hwrev: %s\n" ${fwrev:-NA} ${hwrev:-NA}
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
printf "fwrev: %6s hwrev: %s\n" "${fwrev:-NA}" "${hwrev:-NA}"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 231:
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/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 232:
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/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 233:
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/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 249:
i=$(($i + 1))
^-- SC2004 (style): $/${} is unnecessary on arithmetic variables.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 256:
i=$(($i + 1))
^-- SC2004 (style): $/${} is unnecessary on arithmetic variables.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 266:
[ -r $lf ] || {
^-^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -r "$lf" ] || {
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 270:
cat $lf || echo "Warning: Failed to read $lf"
^-^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
cat "$lf" || echo "Warning: Failed to read $lf"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 343:
[ $idlen -lt $topidlen ] || topidlen=$idlen
^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$idlen" -lt "$topidlen" ] || topidlen=$idlen
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 344:
[ $cnlen -lt $topcnlen ] || topcnlen=$cnlen
^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$cnlen" -lt "$topcnlen" ] || topcnlen=$cnlen
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 372:
echo $num_of_clients
^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo "$num_of_clients"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 376:
[ $# -eq 2 ] && [ "$1" ] && [ "$2" ] ||
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 379:
busctl call --json=pretty $1 $2 \
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
busctl call --json=pretty "$1" "$2" \
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 409:
[ $# -eq 1 ] && [ "$1" ] || error "print_interface_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/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 411:
local reg_dump
^------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 413:
title Settings for $1
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
title Settings for "$1"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 414:
$ETHTOOL_CMD $1 2>&1 || :
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
$ETHTOOL_CMD "$1" 2>&1 || :
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 417:
$ETHTOOL_CMD -i $1 2>&1 || :
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
$ETHTOOL_CMD -i "$1" 2>&1 || :
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 420:
$ETHTOOL_CMD -S $1 2>&1 || :
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
$ETHTOOL_CMD -S "$1" 2>&1 || :
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 424:
if reg_dump=$(gdbus call -y -d com.axis.PolicyKitSystem -o /com/axis/PolicyKitSystem -m com.axis.PolicyKitSystem.ExecuteEthtool d $1 2>&1); then
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if reg_dump=$(gdbus call -y -d com.axis.PolicyKitSystem -o /com/axis/PolicyKitSystem -m com.axis.PolicyKitSystem.ExecuteEthtool d "$1" 2>&1); then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 432:
ifaces=$(ls /sys/class/net | grep -v lo)
^-- SC2010 (warning): Don't use ls | grep. Use a glob or a for loop with a condition to allow non-alphanumeric filenames.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 434:
print_interface_info $i
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
print_interface_info "$i"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 488:
local dbus_net dev_list dev_obj_base dev dev_name intro
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 491:
dev_list=$(gdbus call $dbus_net -m com.axis.Net1.GetDevices 2>/dev/null || :)
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
dev_list=$(gdbus call "$dbus_net" -m com.axis.Net1.GetDevices 2>/dev/null || :)
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 499:
dev_list=${dev_list#*$dev_obj_base}
^-----------^ SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.
Did you mean:
dev_list=${dev_list#*"$dev_obj_base"}
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 508:
dev=${dev_list%%$dev_obj_base*}
^-----------^ SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.
Did you mean:
dev=${dev_list%%"$dev_obj_base"*}
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 520:
intro=$(gdbus introspect $dbus_net/Device/${dev%%\'*} 2>/dev/null || :)
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
intro=$(gdbus introspect "$dbus_net"/Device/"${dev%%\'*}" 2>/dev/null || :)
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 541:
if [ -x $ip_cmd ] && ip_msg=$($ip_cmd -s link show $iface 2>&1); then
^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ -x $ip_cmd ] && ip_msg=$($ip_cmd -s link show "$iface" 2>&1); then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 544:
title iw $iface link
^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
title iw "$iface" link
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 545:
$iw_cmd $iface link 2>&1 || :
^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
$iw_cmd "$iface" link 2>&1 || :
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 547:
title iw $iface scan
^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
title iw "$iface" scan
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 551:
gdbus_response=$(gdbus call -y -d com.axis.PolicyKitSystem -o /com/axis/PolicyKitSystem -m com.axis.PolicyKitSystem.ExecuteIw $iface scan 2>&1)
^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
gdbus_response=$(gdbus call -y -d com.axis.PolicyKitSystem -o /com/axis/PolicyKitSystem -m com.axis.PolicyKitSystem.ExecuteIw "$iface" scan 2>&1)
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 574:
local dbus_net dev_list dev_obj_base dev dev_name intro
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 577:
dev_list=$(gdbus call $dbus_net -m com.axis.Net1.GetDevices 2>/dev/null || :)
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
dev_list=$(gdbus call "$dbus_net" -m com.axis.Net1.GetDevices 2>/dev/null || :)
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 585:
dev_list=${dev_list#*$dev_obj_base}
^-----------^ SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.
Did you mean:
dev_list=${dev_list#*"$dev_obj_base"}
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 594:
dev=${dev_list%%$dev_obj_base*}
^-----------^ SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.
Did you mean:
dev=${dev_list%%"$dev_obj_base"*}
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 606:
intro=$(gdbus introspect $dbus_net/Device/${dev%%\'*} 2>/dev/null || :)
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
intro=$(gdbus introspect "$dbus_net"/Device/"${dev%%\'*}" 2>/dev/null || :)
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 629:
$iw_cmd dev $iface info || :
^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
$iw_cmd dev "$iface" info || :
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 662:
blk_devices=$(echo $blk_pattern)
^------------------^ SC2116 (style): Useless echo? Instead of 'cmd $(echo foo)', just use 'cmd foo'.
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
blk_devices=$(echo "$blk_pattern")
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 665:
ls -l $blk_devices || :
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
ls -l "$blk_devices" || :
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 671:
title Disk status $dev
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
title Disk status "$dev"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 674:
if smart_status=$(gdbus call -y -d com.axis.PolicyKitSystem -o /com/axis/PolicyKitSystem -m com.axis.PolicyKitSystem.ExecuteSmartctl all $dev 2>&1); then
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if smart_status=$(gdbus call -y -d com.axis.PolicyKitSystem -o /com/axis/PolicyKitSystem -m com.axis.PolicyKitSystem.ExecuteSmartctl all "$dev" 2>&1); then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 701:
nbr_temp_sensors=$($gdbus_call $temp_ctrl_dbus_interface.GetNbrOfTemperatureSensors 2>&1) &&
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 707:
nbr_humidity_sensors=$($gdbus_call $temp_ctrl_dbus_interface.GetNbrOfHumiditySensors 2>&1) &&
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 713:
nbr_fans=$($gdbus_call $temp_ctrl_dbus_interface.GetNbrOfFans 2>&1) &&
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 719:
nbr_heaters=$($gdbus_call $temp_ctrl_dbus_interface.GetNbrOfHeaters 2>&1) &&
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 725:
[ $nbr_temp_sensors -lt 1 ] || {
^---------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$nbr_temp_sensors" -lt 1 ] || {
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 731:
[ $nbr_humidity_sensors -lt 1 ] || {
^-------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$nbr_humidity_sensors" -lt 1 ] || {
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 737:
[ $nbr_fans -lt 1 ] || {
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$nbr_fans" -lt 1 ] || {
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 743:
[ $nbr_heaters -lt 1 ] || {
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$nbr_heaters" -lt 1 ] || {
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 789:
! systemctl is-enabled $(echo $mcu | tr A-Z a-z).service >/dev/null 2>&1 ||
^-----------------------^ SC2046 (warning): Quote this to prevent word splitting.
^-^ SC2019 (info): Use '[:upper:]' to support accents and foreign alphabets.
^-^ SC2018 (info): Use '[:lower:]' to support accents and foreign alphabets.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 790:
[ $(mcu_accessory_status.sh $mcu connected) -lt 1 ] || {
^-- SC2046 (warning): Quote this to prevent word splitting.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 791:
title $(mcu_accessory_status.sh $mcu title)
^-- SC2046 (warning): Quote this to prevent word splitting.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 806:
[ ! -x /usr/libexec/tempctrl-setup ] && [ ! -f /usr/share/tempctrl/conf ] && [ ! -f /lib/rcscripts/sh/rc-tempctrl.sh ] || {
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 811:
{ . /usr/share/tempctrl/conf || { echo "Sourcing /usr/share/tempctrl/conf failed"; ! :; }; } &&
^----------------------^ SC1091 (info): Not following: /usr/share/tempctrl/conf was not specified as input (see shellcheck -x).
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 812:
{ . /lib/rcscripts/sh/rc-tempctrl.sh || { echo "Sourcing /lib/rcscripts/sh/rc-tempctrl.sh failed"; ! :; }; } &&
^-- SC1091 (info): Not following: /lib/rcscripts/sh/rc-tempctrl.sh was not specified as input (see shellcheck -x).
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 836:
for f in $(find $d -type f); do
^----------------^ SC2044 (warning): For loops over find output are fragile. Use find -exec or a while read loop.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 837:
echo $f
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo "$f"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 838:
sed '/^$/d' $f
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
sed '/^$/d' "$f"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 870:
analytic_conf=/usr/local/packages/vmd/localdata/*config.json
^-- SC2125 (warning): Brace expansions and globs are literal in assignments. Quote it or use an array.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 871:
if ls $analytic_conf >/dev/null 2>& then
^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if ls "$analytic_conf" >/dev/null 2>& then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 874:
cat $file 2>/dev/null || echo "Failed to read $file."
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
cat "$file" 2>/dev/null || echo "Failed to read $file."
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 877:
analytic_conf=/usr/local/packages/motionguard/localdata/*config.json
^-- SC2125 (warning): Brace expansions and globs are literal in assignments. Quote it or use an array.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 878:
if ls $analytic_conf >/dev/null 2>& then
^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if ls "$analytic_conf" >/dev/null 2>& then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 881:
cat $file 2>/dev/null || echo "Failed to read $file."
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
cat "$file" 2>/dev/null || echo "Failed to read $file."
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 884:
analytic_conf=/usr/local/packages/fenceguard/localdata/*config.json
^-- SC2125 (warning): Brace expansions and globs are literal in assignments. Quote it or use an array.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 885:
if ls $analytic_conf >/dev/null 2>& then
^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if ls "$analytic_conf" >/dev/null 2>& then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 888:
cat $file 2>/dev/null || echo "Failed to read $file."
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
cat "$file" 2>/dev/null || echo "Failed to read $file."
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 891:
analytic_conf=/usr/local/packages/loiteringguard/localdata/*config.json
^-- SC2125 (warning): Brace expansions and globs are literal in assignments. Quote it or use an array.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 892:
if ls $analytic_conf >/dev/null 2>& then
^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if ls "$analytic_conf" >/dev/null 2>& then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 895:
cat $file 2>/dev/null || echo "Failed to read $file."
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
cat "$file" 2>/dev/null || echo "Failed to read $file."
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 918:
local nois_prefix=NumberOfImageSources=
^---------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 919:
local lef_file=/etc/sysconfig/le-framework.conf
^------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 920:
local image_sources i mzd_conf
^----------------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 927:
image_sources=${image_sources#$nois_prefix}
^----------^ SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.
Did you mean:
image_sources=${image_sources#"$nois_prefix"}
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 937:
while [ $i -lt $image_sources ]; do
^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
while [ $i -lt "$image_sources" ]; do
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 941:
i=$(($i + 1))
^-- SC2004 (style): $/${} is unnecessary on arithmetic variables.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 953:
ff=$d/*_status
^---------^ SC2125 (warning): Brace expansions and globs are literal in assignments. Quote it or use an array.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 955:
[ $f = "$ff" ] || {
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$f" = "$ff" ] || {
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 956:
echo $f
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo "$f"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 957:
if [ -r $f ]; then
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ -r "$f" ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 958:
cat $f
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
cat "$f"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 976:
[ $# -eq 2 ] && [ "$1" ] && [ "$2" ] ||
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 978:
title $2
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
title "$2"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 979:
local calb_list file file_name
^----------------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 980:
calb_list=$1/ffc_channel_*
^--------------^ SC2125 (warning): Brace expansions and globs are literal in assignments. Quote it or use an array.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 982:
[ ! -e $file ] || {
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ ! -e "$file" ] || {
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 984:
echo $file_name
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo "$file_name"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 985:
cat $file 2>/dev/null || echo Failed to read $file.
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
cat "$file" 2>/dev/null || echo Failed to read "$file".
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 1017:
[ ! -r $remoteptz_conf ] || [ $ptz_support != yes ] || {
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ ! -r $remoteptz_conf ] || [ "$ptz_support" != yes ] || {
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 1029:
if [ $gpio_value -eq 1 ]; then
^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "$gpio_value" -eq 1 ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 1077:
[ ! -f $1 ] || [ ! -r $1 ] || {
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ ! -f "$1" ] || [ ! -r "$1" ] || {
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 1080:
cat $1
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
cat "$1"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 1088:
for f in $fwupgrade_d/*; do
^----------^ SC2231 (info): Quote expansions in this for loop glob to prevent wordsplitting, e.g. "$dir"/*.txt .
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 1089:
print_file $f
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
print_file "$f"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 1091:
for f in $fwupgrade_d/varlog/*; do
^----------^ SC2231 (info): Quote expansions in this for loop glob to prevent wordsplitting, e.g. "$dir"/*.txt .
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 1092:
print_file $f
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
print_file "$f"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/sbin/gen_serverreport.sh line 1097:
[ -L $f ] || [ ! -f $f ] || [ ! -r $f ] || [ ! -x $f ] || $f || :
^-- 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:
[ -L "$f" ] || [ ! -f "$f" ] || [ ! -r "$f" ] || [ ! -x "$f" ] || $f || :
For more information:
https://www.shellcheck.net/wiki/SC1007 -- Remove space after = if trying to...
https://www.shellcheck.net/wiki/SC1090 -- ShellCheck can't follow non-const...
https://www.shellcheck.net/wiki/SC2010 -- Don't use ls | grep. Use a glob o...