In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 6:
. /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/mediaclip_restore.sh line 16:
	[ $# -eq 2 ] && [ "$1" ] && [ $2 ] || return 1
                                      ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	[ $# -eq 2 ] && [ "$1" ] && [ "$2" ] || return 1


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 17:
	echo "$1" | sed -n $2p
                           ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	echo "$1" | sed -n "$2"p


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 24:
	local m_group
        ^-----------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 26:
		[ $m_group != $1 ] || return 0
                  ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                              ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		[ "$m_group" != "$1" ] || return 0


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 45:
	[ $# -eq 2 ] && [ "$1" ] && [ $2 ] || return 1
                                      ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	[ $# -eq 2 ] && [ "$1" ] && [ "$2" ] || return 1


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 48:
	local index=$(($MAX_GROUPS - 1))
        ^---------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
                       ^---------^ SC2004 (style): $/${} is unnecessary on arithmetic variables.


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 52:
		index=$(($index - 1))
                         ^----^ SC2004 (style): $/${} is unnecessary on arithmetic variables.


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 55:
	local group
        ^---------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 59:
	is_empty $group || {
                 ^----^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	is_empty "$group" || {


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 67:
	parhandclient set $group.Name "$1" ||
                          ^----^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	parhandclient set "$group".Name "$1" ||


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 70:
	parhandclient set $group.Location $2 ||
                          ^----^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                          ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	parhandclient set "$group".Location "$2" ||


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 86:
	local m_group phc
        ^---------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 93:
		if [ "$($phc.Name - RAW)" = "$1" ] && [ "$($phc.Location - RAW)" = "$2" ]; 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 [ "$("$phc".Name - RAW)" = "$1" ] && [ "$("$phc".Location - RAW)" = "$2" ]; then


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 102:
	local location name legacy_clip m_group
        ^-- SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 106:
		location=$(parhandclient get MediaClip.$m_group.Location - RAW) ||
                                                       ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		location=$(parhandclient get MediaClip."$m_group".Location - RAW) ||


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 135:
	local current_nbr_of_groups
        ^-------------------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 136:
	local index=1 group name location mediaclip_groups names locations
        ^-- SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 138:
	mediaclip_groups=$(grep "MediaClip\.M[0-9]" $1 | tr -d "\[\]")
                                                    ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	mediaclip_groups=$(grep "MediaClip\.M[0-9]" "$1" | tr -d "\[\]")


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 139:
	names=$(sed -rne 's/^Name[^"]+("[^"]+")/\1/p' $1)
                                                      ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	names=$(sed -rne 's/^Name[^"]+("[^"]+")/\1/p' "$1")


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 140:
	locations=$(sed -rne 's/^Location[^"]+("[^"]+")/\1/p' $1)
                                                              ^-- SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	locations=$(sed -rne 's/^Location[^"]+("[^"]+")/\1/p' "$1")


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 141:
	current_nbr_of_groups=$(count $CURRENT_AUDIO_GROUPS)
                                      ^-------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
	current_nbr_of_groups=$(count "$CURRENT_AUDIO_GROUPS")


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 144:
	until [ $index -gt $(count "$mediaclip_groups") ]; do
                           ^--------------------------^ SC2046 (warning): Quote this to prevent word splitting.


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 146:
		[ $current_nbr_of_groups -le $MAX_GROUPS ] || return 1
                  ^--------------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                             ^---------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
		[ "$current_nbr_of_groups" -le "$MAX_GROUPS" ] || return 1


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 159:
				current_nbr_of_groups=$(($current_nbr_of_groups + 1))
                                                         ^--------------------^ SC2004 (style): $/${} is unnecessary on arithmetic variables.


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 162:
		index=$(($index + 1))
                         ^----^ SC2004 (style): $/${} is unnecessary on arithmetic variables.


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 168:
	local m_group phc
        ^---------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 176:
		if [ -z "$($phc.Name - RAW)" ] && [ -z "$($phc.Location - RAW)" ]; 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 [ -z "$("$phc".Name - RAW)" ] && [ -z "$("$phc".Location - RAW)" ]; then


In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/etc/fsupgrade.d/mediaclip_restore.sh line 177:
			parhandclient deletegroup MediaClip.$m_group ||
                                                            ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
			parhandclient deletegroup MediaClip."$m_group" ||

For more information:
  https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...
  https://www.shellcheck.net/wiki/SC3043 -- In POSIX sh, 'local' is undefined.
  https://www.shellcheck.net/wiki/SC1091 -- Not following: /lib/rcscripts/sh/...