In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/socksparams2tsocks line 7:
. /lib/rcscripts/sh/files.sh
^------------------------^ SC1091 (info): Not following: /lib/rcscripts/sh/files.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/socksparams2tsocks line 14:
[ $# -eq 3 ] && [ "$2" ] && [ "$3" ] || error "Invalid argument(s)"
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/socksparams2tsocks line 18:
rm -f $tsocks_conf_tmp $preloadfile_tmp $ld_preloadfile_tmp
^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-----------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
rm -f "$tsocks_conf_tmp" $preloadfile_tmp "$ld_preloadfile_tmp"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/socksparams2tsocks line 20:
envfile=$(mktemp /tmp/${0##*/}.XXXXXX) || error "Failed to create envfile"
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
envfile=$(mktemp /tmp/"${0##*/}".XXXXXX) || error "Failed to create envfile"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/socksparams2tsocks line 23:
parhandclient --nocgi getgroup SOCKS $envfile SCRIPT ||
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
parhandclient --nocgi getgroup SOCKS "$envfile" SCRIPT ||
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/socksparams2tsocks line 25:
. $envfile || error "Failed to source '$envfile'"
^------^ SC1090 (warning): ShellCheck can't follow non-constant source. Use a directive to specify location.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
. "$envfile" || error "Failed to source '$envfile'"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/socksparams2tsocks line 27:
case $root_SOCKS_ServerType in
^--------------------^ SC2154 (warning): root_SOCKS_ServerType is referenced but not assigned.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/socksparams2tsocks line 33:
exec 5>$tsocks_conf_tmp
^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
exec 5>"$tsocks_conf_tmp"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/socksparams2tsocks line 35:
server = $root_SOCKS_Server
^----------------^ SC2154 (warning): root_SOCKS_Server is referenced but not assigned.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/socksparams2tsocks line 36:
server_port = $root_SOCKS_ServerPort
^--------------------^ SC2154 (warning): root_SOCKS_ServerPort is referenced but not assigned.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/socksparams2tsocks line 42:
for net_and_mask in $root_SOCKS_LocalNetworks; do
^-----------------------^ SC2154 (warning): root_SOCKS_LocalNetworks is referenced but not assigned.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/socksparams2tsocks line 58:
cmp -s $2 $tsocks_conf_tmp || fsynced_write_or_cleanup $tsocks_conf_tmp $2
^-- 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.
Did you mean:
cmp -s "$2" "$tsocks_conf_tmp" || fsynced_write_or_cleanup "$tsocks_conf_tmp" "$2"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/socksparams2tsocks line 60:
[ -f $3 ] || {
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -f "$3" ] || {
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/socksparams2tsocks line 62:
fsynced_write_or_cleanup $preloadfile_tmp $3
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
fsynced_write_or_cleanup $preloadfile_tmp "$3"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/socksparams2tsocks line 64:
read var<$3 || error "Unable to read '$3'"
^--^ SC2162 (info): read without -r will mangle backslashes.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
read var<"$3" || error "Unable to read '$3'"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/socksparams2tsocks line 67:
[ "$root_SOCKS_Enabled" = yes ] || c='#'
^-----------------^ SC2154 (warning): root_SOCKS_Enabled is referenced but not assigned.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/socksparams2tsocks line 68:
echo "$c$lib_path" >$ld_preloadfile_tmp || error "Unable to write '$ld_preloadfile_tmp'"
^-----------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo "$c$lib_path" >"$ld_preloadfile_tmp" || error "Unable to write '$ld_preloadfile_tmp'"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/socksparams2tsocks line 70:
cmp -s $3 $ld_preloadfile_tmp || fsynced_write_or_cleanup $ld_preloadfile_tmp $3
^-- 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.
Did you mean:
cmp -s "$3" "$ld_preloadfile_tmp" || fsynced_write_or_cleanup "$ld_preloadfile_tmp" "$3"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/socksparams2tsocks line 71:
) 75>/var/lock/socksparams2tsocks
^-----------------------------^ SC3023 (warning): In POSIX sh, FDs outside 0-9 are undefined.
For more information:
https://www.shellcheck.net/wiki/SC1090 -- ShellCheck can't follow non-const...
https://www.shellcheck.net/wiki/SC2154 -- root_SOCKS_Enabled is referenced ...
https://www.shellcheck.net/wiki/SC3023 -- In POSIX sh, FDs outside 0-9 are ...