In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/usr/bin/readAllFiles.sh line 7:
if ! ls $1 > /dev/null; then
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if ! ls "$1" > /dev/null; then
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/usr/bin/readAllFiles.sh line 12:
for i in $(ls $1); do
^------^ SC2045 (error): Iterating over ls output is fragile. Use globs.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
for i in $(ls "$1"); do
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/usr/bin/readAllFiles.sh line 14:
[ -d $1/$i ] && catFiles $1/$i
^-- 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:
[ -d "$1"/"$i" ] && catFiles "$1"/"$i"
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/usr/bin/readAllFiles.sh line 16:
for i in $(ls $1); do
^------^ SC2045 (error): Iterating over ls output is fragile. Use globs.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
for i in $(ls "$1"); do
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/usr/bin/readAllFiles.sh line 18:
if [ -f $1/$i ]; then
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ -f "$1"/"$i" ]; then
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/usr/bin/readAllFiles.sh line 19:
if ! cat $1/$i > /dev/null; then
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if ! cat "$1"/"$i" > /dev/null; then
In /logs/firmware/patool_extraction/DUMP/mtdblock8_unblob_extracted/mtdblock8_extract/0-9650176.squashfs_v4_le_extract/usr/bin/readAllFiles.sh line 30:
catFiles $dir
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
catFiles "$dir"
For more information:
https://www.shellcheck.net/wiki/SC2045 -- Iterating over ls output is fragi...
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...