In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/local_del.cgi line 8:
local file
^--------^ 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/html/axis-cgi/local_del.cgi line 10:
for file in $*; do
^-- SC2048 (warning): Use "$@" (with quotes) to prevent whitespace problems.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/local_del.cgi line 11:
expr $file : '\(/usr/html/local/\(viewer\|operator\|administrator\)/[^/]\+$\)' >/dev/null || continue
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
expr "$file" : '\(/usr/html/local/\(viewer\|operator\|administrator\)/[^/]\+$\)' >/dev/null || continue
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/html/axis-cgi/local_del.cgi line 13:
rm -f $file || {
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
rm -f "$file" || {
For more information:
https://www.shellcheck.net/wiki/SC2048 -- Use "$@" (with quotes) to prevent...
https://www.shellcheck.net/wiki/SC3043 -- In POSIX sh, 'local' is undefined.
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...