In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/ntp_status.sh line 3:
. /lib/rcscripts/sh/error.sh
^------------------------^ SC1091 (info): Not following: /lib/rcscripts/sh/error.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/share/serverreport.d/ntp_status.sh line 5:
. $rc || error "Failed to source '$rc'"
^-^ SC1090 (warning): ShellCheck can't follow non-constant source. Use a directive to specify location.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/ntp_status.sh line 15:
local _ret
^--------^ 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/share/serverreport.d/ntp_status.sh line 16:
if _ret=$($GET_PROP_CMD $1 $2 2>&1); 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 _ret=$($GET_PROP_CMD "$1" "$2" 2>&1); then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/ntp_status.sh line 18:
set -- $_ret
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
set -- "$_ret"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/ntp_status.sh line 21:
echo $2
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo "$2"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/ntp_status.sh line 25:
echo $* | tr -d '"'
^-- SC2048 (warning): Use "$@" (with quotes) to prevent whitespace problems.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo "$*" | tr -d '"'
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/ntp_status.sh line 38:
get_ntp_property com.axis.NTP1 $1
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
get_ntp_property com.axis.NTP1 "$1"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/share/serverreport.d/ntp_status.sh line 43:
get_ntp_property com.axis.NTP1.Server $1
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
get_ntp_property com.axis.NTP1.Server "$1"
For more information:
https://www.shellcheck.net/wiki/SC1090 -- ShellCheck can't follow non-const...
https://www.shellcheck.net/wiki/SC2048 -- Use "$@" (with quotes) to prevent...
https://www.shellcheck.net/wiki/SC3043 -- In POSIX sh, 'local' is undefined.