In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.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/unblob_extracted/firmware_extract/4325012-58052244.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/unblob_extracted/firmware_extract/4325012-58052244.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/unblob_extracted/firmware_extract/4325012-58052244.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/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/restore-acaps line 31:
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.
Did you mean:
local dirs=/usr/local/packages/* origin="$PWD" d start
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/restore-acaps line 32:
local name= reload_httpd=no startlist= autofile=/etc/addon/conf/acapautostart
^-- 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/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/restore-acaps line 33:
local tmp_addon_dir=/tmp/addon finalize_file=finalize
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/restore-acaps line 37:
[ $d != "$dirs" ] || break
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$d" != "$dirs" ] || break
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/restore-acaps line 38:
if [ -d $d ] && cd $d && [ -r $d/package.conf ]; then
^-- 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:
if [ -d "$d" ] && cd "$d" && [ -r "$d"/package.conf ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/restore-acaps line 40:
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/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/restore-acaps line 46:
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/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/restore-acaps line 47:
! systemctl --quiet is-enabled sdk$name || startlist="$startlist $name"
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
! systemctl --quiet is-enabled sdk"$name" || startlist="$startlist $name"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/restore-acaps line 53:
>$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/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/restore-acaps line 59:
echo $start
^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo "$start"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/restore-acaps line 63:
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/SC2125 -- Brace expansions and globs are li...
https://www.shellcheck.net/wiki/SC2188 -- This redirection doesn't have a c...