In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 3:
. /usr/html/axis-cgi/lib/functions.sh
^-- SC1091 (info): Not following: /usr/html/axis-cgi/lib/functions.sh was not specified as input (see shellcheck -x).
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 9:
logger -t$PRG -pcrit "$*"
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
logger -t"$PRG" -pcrit "$*"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 16:
[ $# -gt 0 ] && [ "$1" ] ||
^-- 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/html/axis-cgi/serverreport.cgi line 19:
/usr/sbin/gen_serverreport.sh >$1
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
/usr/sbin/gen_serverreport.sh >"$1"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 23:
local p mac zipname
^-----------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 25:
[ $# -gt 1 ] && [ "$1" ] && [ -d "$1" ] ||
^-- 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/html/axis-cgi/serverreport.cgi line 34:
cd $1
^---^ SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
cd "$1" || exit
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 37:
zip -jq $zipname $* || croak "Failed to perform zip operation!"
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2048 (warning): Use "$@" (with quotes) to prevent whitespace problems.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
zip -jq "$zipname" "$*" || croak "Failed to perform zip operation!"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 41:
Expires: Thu, 01 Dec 1994 16:00:00 GMT\r\n\r\n" $zipname
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
Expires: Thu, 01 Dec 1994 16:00:00 GMT\r\n\r\n" "$zipname"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 43:
cat $zipname
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
cat "$zipname"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 48:
[ "$1" ] && [ "$2" ] && [ "$3" ] || croak "Bad arguments: blank!"
^-- 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/html/axis-cgi/serverreport.cgi line 50:
local result= f dest
^------------------^ 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/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 53:
[ -f $f ] || continue
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -f "$f" ] || continue
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 55:
cp $f $dest || {
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
cp "$f" "$dest" || {
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 56:
echo "$PRG: Error copying radar diagnostic file $f!" >>$2
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo "$PRG: Error copying radar diagnostic file $f!" >>"$2"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 63:
eval $3=\$result
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
eval "$3"=\$result
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 69:
[ "$1" ] && [ "$2" ] || croak "Bad destination file argument(s)!"
^-- 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/html/axis-cgi/serverreport.cgi line 71:
generate_report $1
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
generate_report "$1"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 72:
local dadlog=/usr/local/packages/dad/localdata/log.db
^----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 75:
eval $2=\$dadlog
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
eval "$2"=\$dadlog
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 97:
generate_files $tmpfile tmpdadlog
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
generate_files "$tmpfile" tmpdadlog
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 98:
construct_and_send_zip $tmpdir $tmpfile $tmpdadlog
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^--------^ SC2154 (warning): tmpdadlog is referenced but not assigned.
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
construct_and_send_zip "$tmpdir" "$tmpfile" "$tmpdadlog"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 101:
generate_files $tmpfile tmpdadlog
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
generate_files "$tmpfile" tmpdadlog
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 102:
/usr/sbin/jpeg_snapshot $tmpimage || {
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
/usr/sbin/jpeg_snapshot "$tmpimage" || {
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 103:
echo "$PRG: Error generating snapshot image for server report." >>$tmpfile
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo "$PRG: Error generating snapshot image for server report." >>"$tmpfile"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 106:
generate_radar_files $tmpdir $tmpfile radarfiles
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
generate_radar_files "$tmpdir" "$tmpfile" radarfiles
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 107:
construct_and_send_zip $tmpdir $tmpfile $tmpimage $tmpdadlog $radarfiles
^-----^ 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.
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^---------^ SC2154 (warning): radarfiles is referenced but not assigned.
^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
construct_and_send_zip "$tmpdir" "$tmpfile" "$tmpimage" "$tmpdadlog" "$radarfiles"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 111:
generate_report $tmpfile
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
generate_report "$tmpfile"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/serverreport.cgi line 112:
cat $tmpfile
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
cat "$tmpfile"
For more information:
https://www.shellcheck.net/wiki/SC1007 -- Remove space after = if trying to...
https://www.shellcheck.net/wiki/SC2048 -- Use "$@" (with quotes) to prevent...
https://www.shellcheck.net/wiki/SC2154 -- radarfiles is referenced but not ...