In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/sshdgenkeys.sh line 5:
. /lib/rcscripts/sh/files.sh
^------------------------^ SC1091 (info): Not following: /lib/rcscripts/sh/files.sh was not specified as input (see shellcheck -x).
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/sshdgenkeys.sh line 7:
[ $# -eq 1 ] && [ "$1" ] || error "$0: missing or empty argument"
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/sshdgenkeys.sh line 27:
fsynced_write_or_cleanup "$f" "$ecdsa_key${f#$ecdsa_key_tmp}"
^------------^ SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.
Did you mean:
fsynced_write_or_cleanup "$f" "$ecdsa_key${f#"$ecdsa_key_tmp"}"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/sshdgenkeys.sh line 33:
fsynced_write_or_cleanup "$f" "$rsa_key${f#$rsa_key_tmp}"
^----------^ SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.
Did you mean:
fsynced_write_or_cleanup "$f" "$rsa_key${f#"$rsa_key_tmp"}"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/libexec/sshdgenkeys.sh line 37:
[ -f "$ecdsa_key" -a -f "$rsa_key" ] || error "$0: key generation failed"
^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
For more information:
https://www.shellcheck.net/wiki/SC2166 -- Prefer [ p ] && [ q ] as [ p -a q...
https://www.shellcheck.net/wiki/SC1091 -- Not following: /lib/rcscripts/sh/...
https://www.shellcheck.net/wiki/SC2015 -- Note that A && B || C is not if-t...