In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/update_old_permissions.sh line 3:
. /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/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/update_old_permissions.sh line 5:
pattern=/etc/actionengine/user/1/rules/*.xml
^-- SC2125 (warning): Brace expansions and globs are literal in assignments. Quote it or use an array.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/update_old_permissions.sh line 6:
files=$(echo $pattern)
^--------------^ SC2116 (style): Useless echo? Instead of 'cmd $(echo foo)', just use 'cmd foo'.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
files=$(echo "$pattern")
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/update_old_permissions.sh line 7:
[ "$pattern" = "$files" ] || chmod +r $files ||
^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$pattern" = "$files" ] || chmod +r "$files" ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/update_old_permissions.sh line 8:
error $0: Failed to change permissions.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
error "$0": Failed to change permissions.
For more information:
https://www.shellcheck.net/wiki/SC2125 -- Brace expansions and globs are li...
https://www.shellcheck.net/wiki/SC1091 -- Not following: /lib/rcscripts/sh/...
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...