In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/rc-ruleengine-acap line 6:
. /lib/rcscripts/sh/error.sh
  ^------------------------^ SC1091 (info): Not following: /lib/rcscripts/sh/error.sh was not specified as input (see shellcheck -x).


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/rc-ruleengine-acap line 13:
[ "$#" -eq 2 ] && [ "$1" ] && [ "$2" ] || usage
                           ^-- 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-50593792.squashfs_v4_le_extract/usr/libexec/rc-ruleengine-acap line 18:
runstatefile=/usr/local/packages/$appname/conf/runstate.conf
^----------^ SC2034 (warning): runstatefile appears unused. Verify use (or export if used externally).


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/rc-ruleengine-acap line 20:
log_info="logger -p INFO -t $appname[0]"
                            ^-- SC1087 (error): Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet).


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/rc-ruleengine-acap line 21:
log_dbg="logger -p DEBUG -t $appname[0]"
                            ^-- SC1087 (error): Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet).


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/rc-ruleengine-acap line 24:
	local res=
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/rc-ruleengine-acap line 27:
	if ! res=$(dbus-send --print-reply --system --dest=com.axis.RuleEngine /com/axis/RuleEngine com.axis.RuleEngine.AddApplication string:$xmlconffile 2>&1); then
                                                                                                                                              ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	if ! res=$(dbus-send --print-reply --system --dest=com.axis.RuleEngine /com/axis/RuleEngine com.axis.RuleEngine.AddApplication string:"$xmlconffile" 2>&1); then


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/rc-ruleengine-acap line 34:
	local res=
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/rc-ruleengine-acap line 37:
	if ! res=$(dbus-send --print-reply --system --dest=com.axis.RuleEngine /com/axis/RuleEngine com.axis.RuleEngine.AddApplication string:$xmlconffile 2>&1); then
                                                                                                                                              ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	if ! res=$(dbus-send --print-reply --system --dest=com.axis.RuleEngine /com/axis/RuleEngine com.axis.RuleEngine.AddApplication string:"$xmlconffile" 2>&1); then


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/rc-ruleengine-acap line 41:
	if ! res=$(dbus-send --system --print-reply --dest=com.axis.RuleEngine /com/axis/RuleEngine com.axis.RuleEngine.Start string:$xmlconffile 2>&1); then
                                                                                                                                     ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	if ! res=$(dbus-send --system --print-reply --dest=com.axis.RuleEngine /com/axis/RuleEngine com.axis.RuleEngine.Start string:"$xmlconffile" 2>&1); then


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/rc-ruleengine-acap line 48:
	local res=
        ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/rc-ruleengine-acap line 58:
			if ! res=$(dbus-send --print-reply --system --dest=com.axis.RuleEngine /com/axis/RuleEngine com.axis.RuleEngine.RemoveApplication string:$xmlconffile 2>&1); then
                                                                                                                                                                 ^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			if ! res=$(dbus-send --print-reply --system --dest=com.axis.RuleEngine /com/axis/RuleEngine com.axis.RuleEngine.RemoveApplication string:"$xmlconffile" 2>&1); then

For more information:
  https://www.shellcheck.net/wiki/SC1087 -- Use braces when expanding arrays,...
  https://www.shellcheck.net/wiki/SC2034 -- runstatefile appears unused. Veri...
  https://www.shellcheck.net/wiki/SC3043 -- In POSIX sh, 'local' is undefined.