In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 2:
bytes=`printf "\1\2\3\4\5\6\7\10\11\12\13\14\15\16\17\20\21\22\23\24\25\26\27\30\31\32\33\34\35\36\37\40\41\42\43\44\45\46\47\50\51\52\53\54\55\56\57\60\61\62\63\64\65\66\67\70\71\72\73\74\75\76\77\100\101\102\103\104\105\106\107\110\111\112\113\114\115\116\117\120\121\122\123\124\125\126\127\130\131\132\133\134\135\136\137\140\141\142\143\144\145\146\147\150\151\152\153\154\155\156\157\160\161\162\163\164\165\166\167\170\171\172\173\174\175\176\177\200\201\202\203\204\205\206\207\210\211\212\213\214\215\216\217\220\221\222\223\224\225\226\227\230\231\232\233\234\235\236\237\240\241\242\243\244\245\246\247\250\251\252\253\254\255\256\257\260\261\262\263\264\265\266\267\270\271\272\273\274\275\276\277\300\301\302\303\304\305\306\307\310\311\312\313\314\315\316\317\320\321\322\323\324\325\326\327\330\331\332\333\334\335\336\337\340\341\342\343\344\345\346\347\350\351\352\353\354\355\356\357\360\361\362\363\364\365\366\367\370\371\372\373\374\375\376\377"`
      ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.

Did you mean: 
bytes=$(printf "\1\2\3\4\5\6\7\10\11\12\13\14\15\16\17\20\21\22\23\24\25\26\27\30\31\32\33\34\35\36\37\40\41\42\43\44\45\46\47\50\51\52\53\54\55\56\57\60\61\62\63\64\65\66\67\70\71\72\73\74\75\76\77\100\101\102\103\104\105\106\107\110\111\112\113\114\115\116\117\120\121\122\123\124\125\126\127\130\131\132\133\134\135\136\137\140\141\142\143\144\145\146\147\150\151\152\153\154\155\156\157\160\161\162\163\164\165\166\167\170\171\172\173\174\175\176\177\200\201\202\203\204\205\206\207\210\211\212\213\214\215\216\217\220\221\222\223\224\225\226\227\230\231\232\233\234\235\236\237\240\241\242\243\244\245\246\247\250\251\252\253\254\255\256\257\260\261\262\263\264\265\266\267\270\271\272\273\274\275\276\277\300\301\302\303\304\305\306\307\310\311\312\313\314\315\316\317\320\321\322\323\324\325\326\327\330\331\332\333\334\335\336\337\340\341\342\343\344\345\346\347\350\351\352\353\354\355\356\357\360\361\362\363\364\365\366\367\370\371\372\373\374\375\376\377")


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 4:
 local t=`dd if=$1 bs=1 count=1 skip=$2 2>/dev/null`
 ^-----^ SC3043 (warning): In POSIX sh, 'local' is undefined.
       ^-- SC2155 (warning): Declare and assign separately to avoid masking return values.
         ^-- SC2046 (warning): Quote this to prevent word splitting.
         ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
                ^-- SC2086 (info): Double quote to prevent globbing and word splitting.
                                     ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
 local t=$(dd if="$1" bs=1 count=1 skip="$2" 2>/dev/null)


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 6:
 t=${bytes%$t*}
           ^-- SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.

Did you mean: 
 t=${bytes%"$t"*}


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 12:
 local elfmag0=`getb $1 0`
 ^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
       ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values.
               ^---------^ SC2046 (warning): Quote this to prevent word splitting.
               ^---------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
                     ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
 local elfmag0=$(getb "$1" 0)


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 13:
 local elfmag1_3=`dd if=$1 bs=1 count=3 skip=1 2>/dev/null`
 ^-------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
       ^-------^ SC2155 (warning): Declare and assign separately to avoid masking return values.
                 ^-- SC2046 (warning): Quote this to prevent word splitting.
                 ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
                        ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
 local elfmag1_3=$(dd if="$1" bs=1 count=3 skip=1 2>/dev/null)


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 14:
 local e_type0=`getb $1 16`
 ^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
       ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values.
               ^----------^ SC2046 (warning): Quote this to prevent word splitting.
               ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
                     ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
 local e_type0=$(getb "$1" 16)


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 15:
 local e_type1=`getb $1 17`
 ^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
       ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values.
               ^----------^ SC2046 (warning): Quote this to prevent word splitting.
               ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
                     ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
 local e_type1=$(getb "$1" 17)


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 16:
 local e_machine0=`getb $1 18`
 ^--------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
       ^--------^ SC2155 (warning): Declare and assign separately to avoid masking return values.
                  ^----------^ SC2046 (warning): Quote this to prevent word splitting.
                  ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
                        ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
 local e_machine0=$(getb "$1" 18)


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 17:
 local e_machine1=`getb $1 19`
 ^--------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
       ^--------^ SC2155 (warning): Declare and assign separately to avoid masking return values.
                  ^----------^ SC2046 (warning): Quote this to prevent word splitting.
                  ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
                        ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
 local e_machine1=$(getb "$1" 19)


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 18:
 local e_machine
 ^-------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 19:
 local ei_data=`getb $1 5`
 ^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
       ^-----^ SC2155 (warning): Declare and assign separately to avoid masking return values.
               ^---------^ SC2046 (warning): Quote this to prevent word splitting.
               ^---------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
                     ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
 local ei_data=$(getb "$1" 5)


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 20:
 local e_flags0=`getb $1 36`
 ^------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
       ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values.
                ^----------^ SC2046 (warning): Quote this to prevent word splitting.
                ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
                      ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
 local e_flags0=$(getb "$1" 36)


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 21:
 local e_flags1=`getb $1 37`
 ^------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
       ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values.
                ^----------^ SC2046 (warning): Quote this to prevent word splitting.
                ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
                      ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
 local e_flags1=$(getb "$1" 37)


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 22:
 local e_flags2=`getb $1 38`
 ^------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
       ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values.
                ^----------^ SC2046 (warning): Quote this to prevent word splitting.
                ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
                      ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
 local e_flags2=$(getb "$1" 38)


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 23:
 local e_flags3=`getb $1 39`
 ^------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
       ^------^ SC2155 (warning): Declare and assign separately to avoid masking return values.
                ^----------^ SC2046 (warning): Quote this to prevent word splitting.
                ^----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
                      ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
 local e_flags3=$(getb "$1" 39)


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 24:
 local e_flags
 ^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 25:
 local m0=1
 ^------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 26:
 local m1=256
 ^------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 27:
 local m2=65536
 ^------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 28:
 local m3=16777216
 ^------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 29:
 local str
 ^-------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 31:
 [ $elfmag0 -eq 127 ] && [ $elfmag1_3 = "ELF" ] || {
   ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                      ^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
                           ^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
 [ "$elfmag0" -eq 127 ] && [ "$elfmag1_3" = "ELF" ] || {


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 36:
 [ $ei_data -eq 2 ] && m0=$m3 && m1=65536 && m2=256 && m3=1
   ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
 [ "$ei_data" -eq 2 ] && m0=$m3 && m1=65536 && m2=256 && m3=1


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 42:
 echo -n "$str file for "
      ^-- SC3037 (warning): In POSIX sh, echo flags are undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 59:
  18) echo "SPARC32PLUS (Sun's "v8plus")";
                                ^----^ SC2140 (warning): Word is of the form "A"B"C" (B indicated). Did you mean "ABC" or "A\"B\"C"?


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 105:
  76) { local vstr=v10;[ $((e_flags&)) -eq 2 ] && vstr=v32; echo "CRIS $vstr (Axis Communications 32-bit emb.proc)";};
        ^--------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 230:
[ $1 ] || {
  ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
[ "$1" ] || {


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 235:
ldd -s $file || {
       ^---^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
ldd -s "$file" || {


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 237:
 filestr=`emstr $file`
         ^-----------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
                ^---^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
 filestr=$(emstr "$file")


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 238:
 expectstr=`emstr /bin/sh`
           ^-------------^ SC2006 (style): Use $(...) notation instead of legacy backticks `...`.

Did you mean: 
 expectstr=$(emstr /bin/sh)


In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/bin/elflibcheck.sh line 247:
 ldd $file
     ^---^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
 ldd "$file"

For more information:
  https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...
  https://www.shellcheck.net/wiki/SC2140 -- Word is of the form "A"B"C" (B in...
  https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to ...