In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/ptz-preinstall-setup line 3:
. /etc/init.d/functions.sh
^----------------------^ SC1091 (info): Not following: /etc/init.d/functions.sh was not specified as input (see shellcheck -x).
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/ptz-preinstall-setup line 13:
ADM_GRP=admin
^-----^ SC2209 (warning): Use var=$(command) to assign output (or quote to assign string).
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/ptz-preinstall-setup line 17:
rm -rf /etc/ptz/bin/$1
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
rm -rf /etc/ptz/bin/"$1"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/ptz-preinstall-setup line 18:
rm -rf /etc/ptz/help/$1
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
rm -rf /etc/ptz/help/"$1"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/ptz-preinstall-setup line 22:
local driver_path
^---------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/ptz-preinstall-setup line 23:
local channel
^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/ptz-preinstall-setup line 24:
local nbr_channels
^----------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/ptz-preinstall-setup line 37:
[ -d $driver_path ] ||
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -d "$driver_path" ] ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/ptz-preinstall-setup line 38:
[ -x $driver_path/$DRIVER_BIN ] ||
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -x "$driver_path"/$DRIVER_BIN ] ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/ptz-preinstall-setup line 39:
[ -f $driver_path/$DRIVER_CONF ] ||
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -f "$driver_path"/$DRIVER_CONF ] ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/ptz-preinstall-setup line 40:
[ -f $driver_path/$DRIVER_HELP ] || {
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -f "$driver_path"/$DRIVER_HELP ] || {
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/ptz-preinstall-setup line 52:
while [ $channel -lt $nbr_channels ]; do
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
while [ $channel -lt "$nbr_channels" ]; do
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/ptz-preinstall-setup line 53:
channel=$(($channel + 1))
^------^ SC2004 (style): $/${} is unnecessary on arithmetic variables.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/ptz-preinstall-setup line 66:
ln -sf $driver_path/$DRIVER_CONF /etc/ptz/bin/$channel/$DRIVER_CONF || {
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
ln -sf "$driver_path"/$DRIVER_CONF /etc/ptz/bin/$channel/$DRIVER_CONF || {
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/ptz-preinstall-setup line 71:
ln -sf $driver_path/$DRIVER_HELP /etc/ptz/help/$channel/$DRIVER_HELP || {
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
ln -sf "$driver_path"/$DRIVER_HELP /etc/ptz/help/$channel/$DRIVER_HELP || {
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/libexec/ptz-preinstall-setup line 76:
ln -sf $driver_path/$DRIVER_BIN /etc/ptz/bin/$channel/$DRIVER_BIN || {
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
ln -sf "$driver_path"/$DRIVER_BIN /etc/ptz/bin/$channel/$DRIVER_BIN || {
For more information:
https://www.shellcheck.net/wiki/SC2209 -- Use var=$(command) to assign outp...
https://www.shellcheck.net/wiki/SC3043 -- In POSIX sh, 'local' is undefined.
https://www.shellcheck.net/wiki/SC1091 -- Not following: /etc/init.d/functi...