In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/automount.sh line 13:
M=`mount | grep $1`
^---------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
M=$(mount | grep "$1")
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/automount.sh line 18:
$MOUNT -t vfat -o fmask=0000,dmask=0000,allow_utime=0022 /dev/$1 "$MOUNT_PATH" && echo -n "/dev/$1" > /tmp/sddev
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC3037 (warning): In POSIX sh, echo flags are undefined.
Did you mean:
$MOUNT -t vfat -o fmask=0000,dmask=0000,allow_utime=0022 /dev/"$1" "$MOUNT_PATH" && echo -n "/dev/$1" > /tmp/sddev
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/automount.sh line 20:
[ ! -d $MOUNT_PATH/$model ] && $MKDIR $MOUNT_PATH/$model
^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ ! -d $MOUNT_PATH/"$model" ] && $MKDIR $MOUNT_PATH/"$model"
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/automount.sh line 22:
[ $model != "" ] && ln -sf $MOUNT_PATH/$model $VOLUME_PATH
^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$model" != "" ] && ln -sf $MOUNT_PATH/"$model" $VOLUME_PATH
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/automount.sh line 30:
test=$(echo $1 | grep -re "mmcblk[0-9]$")
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
test=$(echo "$1" | grep -re "mmcblk[0-9]$")
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/automount.sh line 32:
if [ -b /dev/${test}p1 ]; then
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ -b /dev/"${test}"p1 ]; then
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/automount.sh line 33:
domount ${test}p1
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
domount "${test}"p1
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/automount.sh line 34:
elif [ -b /dev/${test}p2 ] || [ -b /dev/${test}p3 ] || [ -b /dev/${test}p4 ]; then
^-----^ 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:
elif [ -b /dev/"${test}"p2 ] || [ -b /dev/"${test}"p3 ] || [ -b /dev/"${test}"p4 ]; then
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/sbin/automount.sh line 37:
domount $test
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
domount "$test"
For more information:
https://www.shellcheck.net/wiki/SC3037 -- In POSIX sh, echo flags are undef...
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
https://www.shellcheck.net/wiki/SC2006 -- Use $(...) notation instead of le...