In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/bandwidth line 8:
. /lib/rcscripts/sh/error.sh
^------------------------^ SC1091 (info): Not following: /lib/rcscripts/sh/error.sh was not specified as input (see shellcheck -x).
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/bandwidth line 14:
[ $# -gt 0 ] && [ -d $1 ] || error "Argument is not a valid directory!"
^-- 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:
[ $# -gt 0 ] && [ -d "$1" ] || error "Argument is not a valid directory!"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/bandwidth line 17:
if [ -f $1$pre_10_2_cf ] && [ -r $1$pre_10_2_cf ]; 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"$pre_10_2_cf ] && [ -r "$1"$pre_10_2_cf ]; then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/bandwidth line 18:
if [ $(stat -c %U $1$pre_10_2_cf) != root ] &&
^--------------------------^ SC2046 (warning): Quote this to prevent word splitting.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ $(stat -c %U "$1"$pre_10_2_cf) != root ] &&
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/bandwidth line 19:
[ $(stat -c %U $1$pre_10_2_cf) != netd ]; then
^--------------------------^ SC2046 (warning): Quote this to prevent word splitting.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ $(stat -c %U "$1"$pre_10_2_cf) != netd ]; then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/bandwidth line 22:
cp $1$pre_10_2_cf $bandwidth_cf
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
cp "$1"$pre_10_2_cf $bandwidth_cf
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/bandwidth line 25:
elif [ -f $1$bandwidth_cf ] && [ -r $1$bandwidth_cf ]; then
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
elif [ -f "$1"$bandwidth_cf ] && [ -r "$1"$bandwidth_cf ]; then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/bandwidth line 27:
cp $1$bandwidth_cf $bandwidth_cf
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
cp "$1"$bandwidth_cf $bandwidth_cf
For more information:
https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...
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...