In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/restore-acaps line 10:
logger -t ${0##*/} -p INFO -- "$*"
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
logger -t "${0##*/}" -p INFO -- "$*"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/restore-acaps line 15:
logger -t ${0##*/} -p WARNING -- "$*"
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
logger -t "${0##*/}" -p WARNING -- "$*"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/restore-acaps line 20:
logger -t ${0##*/} -p CRIT -- "$*"
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
logger -t "${0##*/}" -p CRIT -- "$*"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/restore-acaps line 26:
. /lib/rcscripts/sh/files.sh
^------------------------^ SC1091 (info): Not following: /lib/rcscripts/sh/files.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/restore-acaps line 27:
. /lib/rcscripts/sh/cmpversions.sh
^-- SC1091 (info): Not following: /lib/rcscripts/sh/cmpversions.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/restore-acaps line 32:
local _sedexpr= REQEMBDEVVERSION=
^-- 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/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/restore-acaps line 39:
[ -d $1 ] && [ -r $1/package.conf ] || return 1
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -d "$1" ] && [ -r "$1"/package.conf ] || return 1
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/restore-acaps line 43:
_var=$(cat $1/package.conf | sed "$_sedexpr" ) || {
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
_var=$(cat "$1"/package.conf | sed "$_sedexpr" ) || {
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/restore-acaps line 48:
eval $_var
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
eval "$_var"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/restore-acaps line 49:
compare_vers $REQEMBDEVVERSION lt "3.0" || return 1
^---------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
compare_vers "$REQEMBDEVVERSION" lt "3.0" || return 1
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/restore-acaps line 55:
local dirs=/usr/local/packages/* origin=$PWD d start
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
^-------------------^ SC2125 (warning): Brace expansions and globs are literal in assignments. Quote it or use an array.
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
^---^ SC2034 (warning): start appears unused. Verify use (or export if used externally).
Did you mean:
local dirs=/usr/local/packages/* origin="$PWD" d start
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/restore-acaps line 56:
local name= reload_httpd=no startlist=
^-- 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/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/restore-acaps line 57:
local tmp_addon_dir=/tmp/addon finalize_file=finalize
^-- 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/restore-acaps line 61:
[ $d != "$dirs" ] || break
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$d" != "$dirs" ] || break
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/restore-acaps line 62:
if _is_supported_acap $d && cd $d; then
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if _is_supported_acap "$d" && cd "$d"; then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/restore-acaps line 64:
if eval PATH=/usr/sbin:/sbin:$PATH install-package.sh reinstall >$d/reinstall.log.tmp 2>& then
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if eval PATH=/usr/sbin:/sbin:"$PATH" install-package.sh reinstall >"$d"/reinstall.log.tmp 2>& then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/restore-acaps line 70:
fsynced_write_or_cleanup $d/reinstall.log.tmp $d/reinstall.log
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
fsynced_write_or_cleanup "$d"/reinstall.log.tmp "$d"/reinstall.log
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/restore-acaps line 71:
! systemctl --quiet is-enabled sdk$name >/dev/null 2>&1 || startlist="$name $startlist"
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
! systemctl --quiet is-enabled sdk"$name" >/dev/null 2>&1 || startlist="$name $startlist"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/restore-acaps line 77:
>$tmp_addon_dir/$finalize_file || warning "Failed create $tmp_addon_dir/$finalize_file"
^----------------------------^ SC2188 (warning): This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/restore-acaps line 80:
cd $origin 2>&1 || :
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
cd "$origin" 2>&1 || :
For more information:
https://www.shellcheck.net/wiki/SC1007 -- Remove space after = if trying to...
https://www.shellcheck.net/wiki/SC2034 -- start appears unused. Verify use ...
https://www.shellcheck.net/wiki/SC2125 -- Brace expansions and globs are li...