In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/dibbler.sh line 7:
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/etc/rc.d/init.d/dibbler.sh line 17:
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/etc/rc.d/init.d/dibbler.sh line 19:
[ -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/etc/rc.d/init.d/dibbler.sh line 20:
[ -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/etc/rc.d/init.d/dibbler.sh line 21:
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/etc/rc.d/init.d/dibbler.sh line 28:
echo -n "$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/etc/rc.d/init.d/dibbler.sh line 34:
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/etc/rc.d/init.d/dibbler.sh line 35:
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/etc/rc.d/init.d/dibbler.sh line 45:
while [ $? == 0 -a $((count++)) -le 6 ]; do sleep 1; killall -0 $daemon > /dev/null 2>& done
^-- SC3014 (warning): In POSIX sh, == in place of = is undefined.
^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
^-- SC3018 (warning): In POSIX sh, ++ is undefined.
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/etc/rc.d/init.d/dibbler.sh line 50:
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/etc/rc.d/init.d/dibbler.sh line 53:
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/etc/rc.d/init.d/dibbler.sh line 65:
[ "$end" = "" ] && [ "$action" != "" ] || 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/SC2166 -- Prefer [ p ] && [ q ] as [ p -a q...