In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-report line 6:
local val cmd
^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-report line 19:
[ "$val" = "'*'" ] && val="All APIs" || {
^-- 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/bin/addon-report line 27:
local delim=" ^ " escaped_delim="~^"
^-----------------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-report line 28:
local continue_iter=false value= rest= remain= escaped_value=
^-- 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/bin/addon-report line 34:
[ "${value#*$escaped_delim}" = "$value" ] ||
^------------^ SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.
Did you mean:
[ "${value#*"$escaped_delim"}" = "$value" ] ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-report line 40:
escaped_value=$escaped_value${remain%%$escaped_delim*}'^'
^------------^ SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.
Did you mean:
escaped_value=$escaped_value${remain%%"$escaped_delim"*}'^'
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-report line 41:
remain=${remain#*$escaped_delim}
^------------^ SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.
Did you mean:
remain=${remain#*"$escaped_delim"}
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-report line 50:
eval $2=\$value
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
eval "$2"=\$value
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-report line 51:
eval $3=\$rest
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
eval "$3"=\$rest
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-report line 55:
local IFS=$IFS oldIFS=$IFS
^-------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
^-^ SC2318 (warning): This assignment is used again in this 'local', but won't have taken effect. Use two 'local's.
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
local IFS="$IFS" oldIFS="$IFS"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-report line 56:
local resp string code
^--------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-report line 57:
local info line next id verno vername license signed webpage state gen
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
^---^ SC2034 (warning): verno appears unused. Verify use (or export if used externally).
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-report line 58:
local name maintainer licensekey license_state
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
^-----------^ SC2034 (warning): license_state appears unused. Verify use (or export if used externally).
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-report line 94:
maintainer= name=
^-- 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/bin/addon-report line 100:
licensekey=$(gdbus call -y -d com.axis.PackageManager.LicenseKeyConf1 -o /com/axis/PackageManager/LicenseKeyConf1 -m com.axis.PackageManager.LicenseKeyConf1.GetMainLicenseKeyInfo \"$id\") || return 1
^-^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
licensekey=$(gdbus call -y -d com.axis.PackageManager.LicenseKeyConf1 -o /com/axis/PackageManager/LicenseKeyConf1 -m com.axis.PackageManager.LicenseKeyConf1.GetMainLicenseKeyInfo \""$id"\") || return 1
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/addon-report line 121:
[ $gen -ne 3 ] || {
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$gen" -ne 3 ] || {
For more information:
https://www.shellcheck.net/wiki/SC1007 -- Remove space after = if trying to...
https://www.shellcheck.net/wiki/SC2034 -- license_state appears unused. Ver...
https://www.shellcheck.net/wiki/SC2318 -- This assignment is used again in ...