In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/validate_parameters.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/bin/validate_parameters.sh line 6:
local host_expr='/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$/p'
^-------------^ 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/bin/validate_parameters.sh line 7:
local ipv4_expr='/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/p'
^-------------^ 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/bin/validate_parameters.sh line 8:
local ipv6_expr='/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/p'
^-------------^ 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/bin/validate_parameters.sh line 10:
[ ! -z $(echo -n $1 | sed -nr $host_expr) ] || \
^-- SC2236 (style): Use -n instead of ! -z.
^-- SC2046 (warning): Quote this to prevent word splitting.
^-- SC3037 (warning): In POSIX sh, echo flags are undefined.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ ! -z $(echo -n "$1" | sed -nr "$host_expr") ] || \
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/validate_parameters.sh line 11:
[ ! -z $(echo -n $1 | sed -nr $ipv4_expr) ] || \
^-- SC2236 (style): Use -n instead of ! -z.
^-- SC2046 (warning): Quote this to prevent word splitting.
^-- SC3037 (warning): In POSIX sh, echo flags are undefined.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ ! -z $(echo -n "$1" | sed -nr "$ipv4_expr") ] || \
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/validate_parameters.sh line 12:
[ ! -z $(echo -n $1 | sed -nr $ipv6_expr) ]
^-- SC2236 (style): Use -n instead of ! -z.
^-- SC2046 (warning): Quote this to prevent word splitting.
^-- SC3037 (warning): In POSIX sh, echo flags are undefined.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ ! -z $(echo -n "$1" | sed -nr "$ipv6_expr") ]
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/validate_parameters.sh line 21:
[ $1 -ge 1 ] && [ $1 -le 65535 ] || error "Port must be in the range [1..65535]"
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$1" -ge 1 ] && [ "$1" -le 65535 ] || error "Port must be in the range [1..65535]"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/validate_parameters.sh line 27:
echo $1 | grep "^[^0-9]*$" || ! ( [ $1 -lt 0 ] || [ $1 -gt 63 ] )
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2235 (style): Use { ..; } instead of (..) to avoid subshell overhead.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo "$1" | grep "^[^0-9]*$" || ! ( [ "$1" -lt 0 ] || [ "$1" -gt 63 ] )
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/validate_parameters.sh line 34:
[ $1 -ge 0 ] && [ $1 -le 63 ] || error "QoS must be in the range [1..63]"
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$1" -ge 0 ] && [ "$1" -le 63 ] || error "QoS must be in the range [1..63]"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/validate_parameters.sh line 41:
local addr= user= host=
^--------------------^ 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/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/validate_parameters.sh line 42:
local old_IFS=$IFS
^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
local old_IFS="$IFS"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/validate_parameters.sh line 47:
for addr in $@ do
^-- SC2068 (error): Double quote array expansions to avoid re-splitting elements.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/validate_parameters.sh line 51:
! ( [ -z $user ] || [ -z $host ] || ! validate_host $host) ||
^---^ 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:
! ( [ -z "$user" ] || [ -z "$host" ] || ! validate_host "$host") ||
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/validate_parameters.sh line 58:
local url_expr='/^https?:\/\/..*$/p'
^------------^ 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/bin/validate_parameters.sh line 60:
if [ -z $(echo -n $1 | sed -nr $url_expr) ]; then
^-- SC2046 (warning): Quote this to prevent word splitting.
^-- SC3037 (warning): In POSIX sh, echo flags are undefined.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ -z $(echo -n "$1" | sed -nr "$url_expr") ]; then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/validate_parameters.sh line 96:
validate_host $OPTARG
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
validate_host "$OPTARG"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/validate_parameters.sh line 99:
validate_url $OPTARG
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
validate_url "$OPTARG"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/validate_parameters.sh line 102:
validate_port $OPTARG
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
validate_port "$OPTARG"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/validate_parameters.sh line 105:
validate_qos $OPTARG
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
validate_qos "$OPTARG"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/validate_parameters.sh line 108:
validate_email $OPTARG
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
validate_email "$OPTARG"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/validate_parameters.sh line 111:
validate_wdr $OPTARG
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
validate_wdr "$OPTARG"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/validate_parameters.sh line 114:
validate_defog $OPTARG
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
validate_defog "$OPTARG"
For more information:
https://www.shellcheck.net/wiki/SC2068 -- Double quote array expansions to ...
https://www.shellcheck.net/wiki/SC1007 -- Remove space after = if trying to...
https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...