In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 4:
ADPPACKPARAMCFG=param.conf
^-------------^ SC2034 (warning): ADPPACKPARAMCFG appears unused. Verify use (or export if used externally).
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 5:
ADPPACKPARAMCFG_BACKUP=param.conf.bak
^--------------------^ SC2034 (warning): ADPPACKPARAMCFG_BACKUP appears unused. Verify use (or export if used externally).
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 12:
local string IFS
^--------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 23:
local _appdir=$1 _restore2dir=$2 _ret=0 _grpname
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
local _appdir="$1" _restore2dir="$2" _ret=0 _grpname
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 30:
if [ ! -d $_restore2dir ]; then
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ ! -d "$_restore2dir" ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 35:
if [ -f $_appdir/conf/$RUNSTATEFILE ]; then
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ -f "$_appdir"/conf/$RUNSTATEFILE ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 36:
if ! cp -fp $_appdir/conf/$RUNSTATEFILE $_restore2dir/$RUNSTATEFILE.tmp; 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 ! cp -fp "$_appdir"/conf/$RUNSTATEFILE "$_restore2dir"/$RUNSTATEFILE.tmp; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 40:
fsynced_write_or_cleanup $_restore2dir/$RUNSTATEFILE.tmp $_restore2dir/$RUNSTATEFILE
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
fsynced_write_or_cleanup "$_restore2dir"/$RUNSTATEFILE.tmp "$_restore2dir"/$RUNSTATEFILE
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 47:
local _appdir=$1 _restore2dir=$2 _ret=0 _grpname
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
local _appdir="$1" _restore2dir="$2" _ret=0 _grpname
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 54:
if [ ! -d $_restore2dir ]; then
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ ! -d "$_restore2dir" ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 59:
if __dir_has_files $_appdir/$APP_LOCAL_DATA_DIR/; then
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if __dir_has_files "$_appdir"/$APP_LOCAL_DATA_DIR/; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 60:
__fsynced_write_or_cleanup_dir $_appdir/$APP_LOCAL_DATA_DIR $_restore2dir/$APP_LOCAL_DATA_DIR
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
__fsynced_write_or_cleanup_dir "$_appdir"/$APP_LOCAL_DATA_DIR "$_restore2dir"/$APP_LOCAL_DATA_DIR
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 68:
fsynced_write_or_cleanup $_restore2dir/$APPNAME.xml.tmp $_restore2dir/$APPNAME.xml
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
fsynced_write_or_cleanup "$_restore2dir"/"$APPNAME".xml.tmp "$_restore2dir"/"$APPNAME".xml
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 71:
if [ -f $_appdir/$LICFILENAME ]; then
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ -f "$_appdir"/$LICFILENAME ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 72:
if ! cp -fp $_appdir/$LICFILENAME $_restore2dir/$LICFILENAME.tmp; 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 ! cp -fp "$_appdir"/$LICFILENAME "$_restore2dir"/$LICFILENAME.tmp; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 76:
fsynced_write_or_cleanup $_restore2dir/$LICFILENAME.tmp $_restore2dir/$LICFILENAME
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
fsynced_write_or_cleanup "$_restore2dir"/$LICFILENAME.tmp "$_restore2dir"/$LICFILENAME
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 79:
if [ -f $_appdir/conf/$APPNAME.conf ]; 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 "$_appdir"/conf/"$APPNAME".conf ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 80:
if ! cp -fp $_appdir/conf/$APPNAME.conf $_restore2dir/$APPNAME.conf.tmp; then
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if ! cp -fp "$_appdir"/conf/"$APPNAME".conf "$_restore2dir"/"$APPNAME".conf.tmp; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 84:
fsynced_write_or_cleanup $_restore2dir/$APPNAME.conf.tmp $_restore2dir/$APPNAME.conf
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-----------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
fsynced_write_or_cleanup "$_restore2dir"/"$APPNAME".conf.tmp "$_restore2dir"/"$APPNAME".conf
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 91:
local _appdir=$1 _restorefromdir=$2 ret=0 line param_new_line param_old_line param_new param_old a_hit
^-- SC3043 (warning): In POSIX sh, 'local' is undefined.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^--^ SC2034 (warning): line appears unused. Verify use (or export if used externally).
Did you mean:
local _appdir="$1" _restorefromdir="$2" ret=0 line param_new_line param_old_line param_new param_old a_hit
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 98:
if [ ! -d $_restorefromdir ]; then
^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ ! -d "$_restorefromdir" ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 108:
if [ -d $_restorefromdir/$APP_LOCAL_DATA_DIR ]; then
^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ -d "$_restorefromdir"/$APP_LOCAL_DATA_DIR ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 109:
__fsynced_write_or_cleanup_dir $_restorefromdir/$APP_LOCAL_DATA_DIR $_appdir/$APP_LOCAL_DATA_DIR
^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
__fsynced_write_or_cleanup_dir "$_restorefromdir"/$APP_LOCAL_DATA_DIR "$_appdir"/$APP_LOCAL_DATA_DIR
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 112:
if [ ! -f $_appdir/$LICFILENAME ] && [ -f $_restorefromdir/$LICFILENAME ]; 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 "$_appdir"/$LICFILENAME ] && [ -f "$_restorefromdir"/$LICFILENAME ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 113:
cp -fp $_restorefromdir/$LICFILENAME $_appdir/$LICFILENAME.tmp || :
^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
cp -fp "$_restorefromdir"/$LICFILENAME "$_appdir"/$LICFILENAME.tmp || :
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 114:
fsynced_write_or_cleanup $_appdir/$LICFILENAME.tmp $_appdir/$LICFILENAME
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
fsynced_write_or_cleanup "$_appdir"/$LICFILENAME.tmp "$_appdir"/$LICFILENAME
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 117:
group_name=$(r=${APPNAME#?};f=${APPNAME%$r};echo $(echo $f | tr [:lower:] [:upper:])$r)
^--------^ SC2034 (warning): group_name appears unused. Verify use (or export if used externally).
^-- SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.
^-- SC2046 (warning): Quote this to prevent word splitting.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
^-------^ SC2060 (warning): Quote parameters to tr to prevent glob expansion.
^-------^ SC2060 (warning): Quote parameters to tr to prevent glob expansion.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
group_name=$(r=${APPNAME#?};f=${APPNAME%"$r"};echo $(echo "$f" | tr [:lower:] [:upper:])"$r")
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 119:
if [ -f $_restorefromdir/$APPNAME.conf ]; 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 "$_restorefromdir"/"$APPNAME".conf ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 125:
if [ $param_old = $param_new ]; 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 [ "$param_old" = "$param_new" ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 128:
done < $_restorefromdir/$APPNAME.conf
^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
done < "$_restorefromdir"/"$APPNAME".conf
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 131:
echo $param_new_line >> $_restorefromdir/$APPNAME.conf
^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
echo "$param_new_line" >> "$_restorefromdir"/"$APPNAME".conf
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 133:
done < $_appdir/conf/$APPNAME.conf
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
done < "$_appdir"/conf/"$APPNAME".conf
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 134:
cp -fp $_restorefromdir/$APPNAME.conf $_appdir/conf/$APPNAME.conf.tmp || :
^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
cp -fp "$_restorefromdir"/"$APPNAME".conf "$_appdir"/conf/"$APPNAME".conf.tmp || :
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 135:
fsynced_write_or_cleanup $_appdir/conf/$APPNAME.conf.tmp $_appdir/conf/$APPNAME.conf
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
fsynced_write_or_cleanup "$_appdir"/conf/"$APPNAME".conf.tmp "$_appdir"/conf/"$APPNAME".conf
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 138:
if [ -f $_restorefromdir/$RUNSTATEFILE ]; then
^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ -f "$_restorefromdir"/$RUNSTATEFILE ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 139:
cp -fp $_restorefromdir/$RUNSTATEFILE $_appdir/conf/$RUNSTATEFILE.tmp || :
^--------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
cp -fp "$_restorefromdir"/$RUNSTATEFILE "$_appdir"/conf/$RUNSTATEFILE.tmp || :
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 140:
fsynced_write_or_cleanup $_appdir/conf/$RUNSTATEFILE.tmp $_appdir/conf/$RUNSTATEFILE
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
fsynced_write_or_cleanup "$_appdir"/conf/$RUNSTATEFILE.tmp "$_appdir"/conf/$RUNSTATEFILE
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 147:
local dir=$1 ret=1
^--------------^ SC3043 (warning): In POSIX sh, 'local' is undefined.
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
local dir="$1" ret=1
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 149:
[ -d $dir ] || return 1
^--^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ -d "$dir" ] || return 1
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/lib/preserve.sh line 151:
for f in $dir/.* $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/html/axis-cgi/lib/preserve.sh line 152:
f=${f#$dir/}
^--^ SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.
Did you mean:
f=${f#"$dir"/}
For more information:
https://www.shellcheck.net/wiki/SC2034 -- ADPPACKPARAMCFG appears unused. V...
https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...
https://www.shellcheck.net/wiki/SC2060 -- Quote parameters to tr to prevent...