In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/time-service line 12:
. /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-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/time-service line 21:
[ $1 ] || error "Failed due to '\$1' empty"
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$1" ] || error "Failed due to '\$1' empty"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/time-service line 22:
[ -d $1 ] || error "Directory '$1' test failed"
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -d "$1" ] || error "Directory '$1' test failed"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/time-service line 24:
if [ -f $1$ts_posix_time_zone ] && [ -r $1$ts_posix_time_zone ]; 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"$ts_posix_time_zone ] && [ -r "$1"$ts_posix_time_zone ]; then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/time-service line 30:
if [ -h $1$localtime ]; then
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ -h "$1"$localtime ]; then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/time-service line 34:
elif [ -f $1$localtime ] && [ -r $1$localtime ]; 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"$localtime ] && [ -r "$1"$localtime ]; then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/time-service line 52:
if [ -f $1$ts_conf ]; then
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ -f "$1"$ts_conf ]; then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/time-service line 58:
if [ -f $legacy_conf ]; then
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ -f "$legacy_conf" ]; then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/time-service line 61:
. $legacy_conf || error "Failed to source: '$legacy_conf'"
^----------^ SC1090 (warning): ShellCheck can't follow non-constant source. Use a directive to specify location.
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
. "$legacy_conf" || error "Failed to source: '$legacy_conf'"
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/time-service line 67:
[ $POSIX_TZ ] || POSIX_TZ=GMT0BST,M3.5.0/1,M10.5.0
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$POSIX_TZ" ] || POSIX_TZ=GMT0BST,M3.5.0/1,M10.5.0
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/time-service line 68:
[ $DST_ENABLED ] || DST_ENABLED=no
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$DST_ENABLED" ] || DST_ENABLED=no
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/time-service line 79:
if [ -z $mode ] || [ -z $iana_tz ]; 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 "$mode" ] || [ -z "$iana_tz" ]; then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/time-service line 81:
target_tz=$(echo $target_link | sed "s/.*\/usr\/share\/zoneinfo\///g")
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
target_tz=$(echo "$target_link" | sed "s/.*\/usr\/share\/zoneinfo\///g")
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/time-service line 82:
if [ $target_tz = "user_defined" ]; then
^--------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "$target_tz" = "user_defined" ]; then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/time-service line 83:
if [ -z $mode ]; then
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ -z "$mode" ]; then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/time-service line 88:
if [ -z $mode ]; then
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ -z "$mode" ]; then
In /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/conf-migrate/upgrade-run.d/time-service line 93:
if [ -z $iana_tz ]; then
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ -z "$iana_tz" ]; then
For more information:
https://www.shellcheck.net/wiki/SC1090 -- ShellCheck can't follow non-const...
https://www.shellcheck.net/wiki/SC1091 -- Not following: /lib/rcscripts/sh/...
https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...