In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/subscriptionManager.sh line 6:
echo $&commat
^-- SC2068 (error): Double quote array expansions to avoid re-splitting elements.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/subscriptionManager.sh line 15:
! pids=$(pidof $daemon) || die "$daemon($pids) is already running."
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
! pids=$(pidof "$daemon") || die "$daemon($pids) is already running."
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/subscriptionManager.sh line 16:
echo -n "Startting $daemon... "
^-- SC3037 (warning): In POSIX sh, echo flags are undefined.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/subscriptionManager.sh line 17:
[ -x $binary ] || die "$binary is not a valid application"
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -x "$binary" ] || die "$binary is not a valid application"
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/subscriptionManager.sh line 18:
[ -d $prefix ] && export PREFIX=$prefix
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -d "$prefix" ] && export PREFIX="$prefix"
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/subscriptionManager.sh line 19:
export LD_LIBRARY_PATH=$prefix/lib
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
export LD_LIBRARY_PATH="$prefix"/lib
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/subscriptionManager.sh line 25:
pids=$(pidof $daemon) || { echo "$daemon is not running." && return 1; }
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
pids=$(pidof "$daemon") || { echo "$daemon is not running." && return 1; }
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/subscriptionManager.sh line 26:
echo -n "Stopping $daemon... "
^-- SC3037 (warning): In POSIX sh, echo flags are undefined.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/subscriptionManager.sh line 27:
kill $(echo $pids | cut -d' ' -f1)
^---------------------------^ SC2046 (warning): Quote this to prevent word splitting.
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
kill $(echo "$pids" | cut -d' ' -f1)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/subscriptionManager.sh line 29:
pids=$(pidof $daemon) && sleep 2
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
pids=$(pidof "$daemon") && sleep 2
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/subscriptionManager.sh line 30:
pids=$(pidof $daemon) && killall -9 $daemon && sleep 1 && pids=$(pidof $daemon) && die "ng." || echo "stop $daemon ok."
^-----^ 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:
pids=$(pidof "$daemon") && killall -9 "$daemon" && sleep 1 && pids=$(pidof "$daemon") && die "ng." || echo "stop $daemon ok."
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/subscriptionManager.sh line 34:
pids=$(pidof $daemon) || { echo "$daemon is not running." && return 1; }
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
pids=$(pidof "$daemon") || { echo "$daemon is not running." && return 1; }
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/subscriptionManager.sh line 35:
echo -n "Reloading $daemon... "
^-- SC3037 (warning): In POSIX sh, echo flags are undefined.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/subscriptionManager.sh line 36:
kill -s SIGUSR1 $(echo $pids | cut -d' ' -f1)
^---------------------------^ SC2046 (warning): Quote this to prevent word splitting.
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
kill -s SIGUSR1 $(echo "$pids" | cut -d' ' -f1)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/subscriptionManager.sh line 41:
pids=$(pidof $daemon) || { echo "$daemon is not running." && return 1; }
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
pids=$(pidof "$daemon") || { echo "$daemon is not running." && return 1; }
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/subscriptionManager.sh line 42:
echo -n "synchronize $daemon... "
^-- SC3037 (warning): In POSIX sh, echo flags are undefined.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/subscriptionManager.sh line 43:
kill -s SIGUSR2 $(echo $pids | cut -d' ' -f1)
^---------------------------^ SC2046 (warning): Quote this to prevent word splitting.
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
kill -s SIGUSR2 $(echo "$pids" | cut -d' ' -f1)
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/subscriptionManager.sh line 52:
[ "$end" = "" ] && [ "$action" != "" ] && [ "$daemon" != "" ] || showUsage
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
For more information:
https://www.shellcheck.net/wiki/SC2068 -- Double quote array expansions to ...
https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...
https://www.shellcheck.net/wiki/SC3037 -- In POSIX sh, echo flags are undef...