In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/lib/limited_access.sh line 11:
local _prop_val _vapix_val=true
^------------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/lib/limited_access.sh line 21:
local _group _key _value
^----------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/lib/limited_access.sh line 22:
local IFS="="
^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/lib/limited_access.sh line 35:
'#'* | ' '* | \t*)
^-- SC1012 (warning): \t is just literal 't' here. For tab, use "$(printf '\t')" instead.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/lib/limited_access.sh line 57:
local _value=
^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/lib/limited_access.sh line 58:
local IFS='
^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/lib/limited_access.sh line 60:
for _line in $(tar -Oxf $1 $PKG_CONF_FILE); do
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
for _line in $(tar -Oxf "$1" $PKG_CONF_FILE); do
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/lib/limited_access.sh line 61:
if [ ${_line%%=*} = "$2" ]; then
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "${_line%%=*}" = "$2" ]; then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/lib/limited_access.sh line 70:
local _uid
^--------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/lib/limited_access.sh line 84:
_uid=$(id -u $1); [ $_uid -ne 0 ] || {
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
_uid=$(id -u "$1"); [ "$_uid" -ne 0 ] || {
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/lib/limited_access.sh line 94:
local _user= _group= _allow_root=false
^-- 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='' ... ).
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/lib/limited_access.sh line 104:
__pkgconf_value $1 APPUSR _user
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
__pkgconf_value "$1" APPUSR _user
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/lib/limited_access.sh line 105:
__pkgconf_value $1 APPGRP _group
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
__pkgconf_value "$1" APPGRP _group
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/lib/limited_access.sh line 117:
local _eap_path _line _result=rejected
^---------------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/lib/limited_access.sh line 119:
[ $# -eq 1 ] && [ "$1" ] || {
^-- 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-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/lib/limited_access.sh line 140:
while read _line; do
^--^ SC2162 (info): read without -r will mangle backslashes.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/html/axis-cgi/lib/limited_access.sh line 141:
set -- $_line
^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
set -- "$_line"
For more information:
https://www.shellcheck.net/wiki/SC1007 -- Remove space after = if trying to...
https://www.shellcheck.net/wiki/SC1012 -- \t is just literal 't' here. For ...
https://www.shellcheck.net/wiki/SC3043 -- In POSIX sh, 'local' is undefined.