In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/lens_correctiond 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/usr/lib/conf-migrate/upgrade-run.d/lens_correctiond line 11:
if [ $# -lt 1 ] || [ ! -d $1 ]; then
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ $# -lt 1 ] || [ ! -d "$1" ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/lens_correctiond line 17:
[ -d $1$lens_dir ] || exit 0
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -d "$1"$lens_dir ] || exit 0
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/lens_correctiond line 20:
for dir in $1$lens_dir/*; do
^-- SC2231 (info): Quote expansions in this for loop glob to prevent wordsplitting, e.g. "$dir"/*.txt .
^-------^ SC2231 (info): Quote expansions in this for loop glob to prevent wordsplitting, e.g. "$dir"/*.txt .
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/lens_correctiond line 21:
if [ -f $dir/lens_correction.conf ]; then
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ -f "$dir"/lens_correction.conf ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/lens_correctiond line 27:
for file in $new_conf_path/*; do
^------------^ SC2231 (info): Quote expansions in this for loop glob to prevent wordsplitting, e.g. "$dir"/*.txt .
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/lens_correctiond line 35:
[ ! -f $1$lens_dir/$prod_nbr/lens_correction.conf ] ||
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ ! -f "$1"$lens_dir/"$prod_nbr"/lens_correction.conf ] ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/lens_correctiond line 42:
[ -z $old_conf ] || [ ! -f $old_conf ] || {
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -z "$old_conf" ] || [ ! -f "$old_conf" ] || {
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/lens_correctiond line 43:
cp -f $old_conf $new_conf ||
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
cp -f "$old_conf" "$new_conf" ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/lens_correctiond line 45:
chown $user:$group $new_conf || error "Failed to chown $new_conf"
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
chown $user:$group "$new_conf" || error "Failed to chown $new_conf"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/lens_correctiond line 46:
chmod $mode $new_conf || error "Failed to chmod $new_conf"
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
chmod $mode "$new_conf" || error "Failed to chmod $new_conf"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/lens_correctiond line 54:
if [ -f $conf_file ]; then
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ -f "$conf_file" ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/lens_correctiond line 55:
found_bdc=$(sed -ne '/^\[Control\]/,/^\[/{/ForceBdcOff=/p}' $conf_file)
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
found_bdc=$(sed -ne '/^\[Control\]/,/^\[/{/ForceBdcOff=/p}' "$conf_file")
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/lens_correctiond line 56:
[ $found_bdc ] ||
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$found_bdc" ] ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/lens_correctiond line 57:
sed -i '/\[Control\]/a ForceBdcOff=1' $conf_file
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
sed -i '/\[Control\]/a ForceBdcOff=1' "$conf_file"
For more information:
https://www.shellcheck.net/wiki/SC1091 -- Not following: /lib/rcscripts/sh/...
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
https://www.shellcheck.net/wiki/SC2231 -- Quote expansions in this for loop...