[+] Check scripts with shellcheck and semgrep

This module tries to identify shell scripts and analyses them with shellcheck - https://www.shellcheck.net/.


==> Check scripts with shellcheck

[+] Found 3 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/2097216-5451840.squashfs_v4_le_extract/usr/share/udhcpc/default.script (-rw-r--r-- 501 dialout)
[+] Found 9 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/6225984-11075644.jffs2_new_extract/etc/miio_client/wifi_start.sh (-rw-r--r-- root root)
[+] Found 4 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/6225984-11075644.jffs2_new_extract/etc/udhcpc.script (-rw-r--r-- root root)
[+] Found 15 issues in script (common linux file: no): ./logs/firmware/unblob_extracted/firmware_extract/6225984-11075644.jffs2_new_extract/etc/miio_client/miio_client_helper_nomqtt.sh (-rw-r--r-- root root)


==> Summary of shell issues (shellcheck)

[+] Found 31 issues in 9 shell scripts


    [+] SC2006 (style): Use $(...) notation instead of legacy backticks `...`.
    [+] SC2086 (info): Double quote to prevent globbing and word splitting.
    [+] SC2089 (warning): Quotes/backslashes will be treated literally. Rewrite using set/"$@" or functions.
    [+] SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
    [+] SC3014 (warning): In POSIX sh, == in place of = is undefined.
    [+] SC3037 (warning): In POSIX sh, echo flags are undefined.

==> Check scripts with semgrep



==> Summary of shell issues (semgrep)

[+] Found 47 issues in 9 shell scripts


==> Check shell scripts for eval usage