In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 14:
. /usr/html/axis-cgi/lib/functions.sh
^-- SC1091 (info): Not following: /usr/html/axis-cgi/lib/functions.sh was not specified as input (see shellcheck -x).
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 29:
__cgi_errhd $1 "$2"
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
__cgi_errhd "$1" "$2"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 50:
printout $1 "$2"
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
printout "$1" "$2"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 63:
local cmd
^-------^ 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/mediaclip.cgi line 83:
local method
^----------^ 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/mediaclip.cgi line 104:
[ "${LOCATION##$AUDIO_FILE_PATH/}" != "$LOCATION" ] || return 1
^--------------^ SC2295 (info): Expansions inside ${..} need to be quoted separately, otherwise they match as patterns.
Did you mean:
[ "${LOCATION##"$AUDIO_FILE_PATH"/}" != "$LOCATION" ] || return 1
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 115:
local max_mediaclips nbr_of_groups errf=error
^-- 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/mediaclip.cgi line 124:
[ $nbr_of_groups -ne $max_mediaclips ] ||
^------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$nbr_of_groups" -ne "$max_mediaclips" ] ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 143:
local output
^----------^ 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/mediaclip.cgi line 147:
output=$($PHC get Properties.Audio.Source.$1.Output - RAW) ||
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
output=$($PHC get Properties.Audio.Source."$1".Output - RAW) ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 155:
local f=get_default_output_source sources source
^-- 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/mediaclip.cgi line 157:
[ $# -eq 1 ] && [ "$1" ] || error "$f: missing argument"
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 164:
if has_audio_output $source; then
^-----^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if has_audio_output "$source"; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 165:
eval $1=\$source
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
eval "$1"=\$source
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 174:
local clip_nr ret group_nbr default_source audiooutput
^-- 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/mediaclip.cgi line 176:
clip_nr=$(__qs_getparam clip) && [ "$clip_nr" ] ||
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 180:
LOCATION=$($PHC get MediaClip.M$clip_nr.Location - RAW |
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
LOCATION=$($PHC get MediaClip.M"$clip_nr".Location - RAW |
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 189:
group_nbr=$(($audiooutput - 1))
^----------^ SC2004 (style): $/${} is unnecessary on arithmetic variables.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 196:
audiooutput=$(($group_nbr + 1))
^--------^ SC2004 (style): $/${} is unnecessary on arithmetic variables.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 200:
ok "playing" $clip_nr
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
ok "playing" "$clip_nr"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 204:
local samplerate mediatype duration wait clip_nr ret name statusled cnt
^-- 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/mediaclip.cgi line 205:
local channel
^-----------^ 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/mediaclip.cgi line 210:
$SAMPLE_RATE_DEFAULT|8000)
^------------------^ SC2254 (warning): Quote expansions in case patterns to match literally rather than as a glob.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 217:
mediatype=$(__qs_getparam media) && [ "$mediatype" ] ||
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 234:
ret=$($PHC set $clip_nr.Location $LOCATION) ||
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
ret=$($PHC set "$clip_nr".Location "$LOCATION") ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 238:
ret=$($PHC set $clip_nr.Name "$name") ||
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
ret=$($PHC set "$clip_nr".Name "$name") ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 244:
[ $wait -le 0 ] || sleep $wait
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
^---^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$wait" -le 0 ] || sleep "$wait"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 247:
ok "recording" $clip_nr
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
ok "recording" "$clip_nr"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 250:
[ $duration -le 0 ] || {
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
[ "$duration" -le 0 ] || {
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 251:
sleep $duration
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
sleep "$duration"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 253:
while [ ! -f $LOCATION ] && [ $cnt -gt 0 ]; do
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
while [ ! -f "$LOCATION" ] && [ $cnt -gt 0 ]; do
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 254:
cnt=$(($cnt - 1))
^--^ SC2004 (style): $/${} is unnecessary on arithmetic variables.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 265:
local clip_nr clip_name
^---------------------^ 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/mediaclip.cgi line 274:
$PHC set MediaClip.M$clip_nr.Name "$clip_name" ||
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
$PHC set MediaClip.M"$clip_nr".Name "$clip_name" ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 276:
ok "updated" $clip_nr
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
ok "updated" "$clip_nr"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 280:
local clip_nr
^-----------^ 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/mediaclip.cgi line 282:
clip_nr=$(__qs_getparam clip) && [ "$clip_nr" ] ||
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 286:
LOCATION=$($PHC get MediaClip.M$clip_nr.Location - RAW) ||
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
LOCATION=$($PHC get MediaClip.M"$clip_nr".Location - RAW) ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 288:
$PHC deletegroup MediaClip.M$clip_nr ||
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
$PHC deletegroup MediaClip.M"$clip_nr" ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 296:
ok "removed" $clip_nr
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
ok "removed" "$clip_nr"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 300:
local clip_nr mimetype
^--------------------^ 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/mediaclip.cgi line 302:
clip_nr=$(__qs_getparam clip) && [ "$clip_nr" ] ||
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 306:
LOCATION=$($PHC get MediaClip.M$clip_nr.Location - RAW) ||
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
LOCATION=$($PHC get MediaClip.M"$clip_nr".Location - RAW) ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 311:
if [ ${LOCATION##*.} = au ]; then
^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
if [ "${LOCATION##*.}" = au ]; then
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 324:
[ $# -ge 1 ] && [ "$1" ] || error "Invalid file argument"
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 329:
error $3 "$2"
^-- SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
error "$3" "$2"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 338:
local mediatype clip_nr ret name existing_param
^-- 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/mediaclip.cgi line 340:
mediatype=$(__qs_getparam media) && [ "$mediatype" ] ||
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 348:
LOCATION=$(file_upload -s $CONTENT_LENGTH -n 65536 -a \
^-------------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
LOCATION=$(file_upload -s "$CONTENT_LENGTH" -n 65536 -a \
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 352:
chgrp streamer "$LOCATION" && chmod 640 "$LOCATION" ||
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 353:
on_failed_file_operation $LOCATION "Failed to change owner and/or " \
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
on_failed_file_operation "$LOCATION" "Failed to change owner and/or " \
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 357:
on_failed_file_operation $LOCATION "Unsupported Media Type" 415
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
on_failed_file_operation "$LOCATION" "Unsupported Media Type" 415
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 367:
ok "updated" $clip_nr
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
ok "updated" "$clip_nr"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 370:
on_failed_file_operation $LOCATION \
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
on_failed_file_operation "$LOCATION" \
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 373:
ret=$($PHC set $clip_nr.Location "$LOCATION") ||
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
ret=$($PHC set "$clip_nr".Location "$LOCATION") ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 374:
on_failed_file_operation $LOCATION \
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
on_failed_file_operation "$LOCATION" \
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 380:
ret=$($PHC set $clip_nr.Name "$name") ||
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
ret=$($PHC set "$clip_nr".Name "$name") ||
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 381:
on_failed_file_operation $LOCATION "Failed to set clip name: '$ret' " \
^-------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
on_failed_file_operation "$LOCATION" "Failed to set clip name: '$ret' " \
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 383:
ok "uploaded" $clip_nr
^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
Did you mean:
ok "uploaded" "$clip_nr"
In /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/html/axis-cgi/mediaclip.cgi line 387:
action=$(__qs_getparam action) && [ "$action" ] ||
^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.
For more information:
https://www.shellcheck.net/wiki/SC2254 -- Quote expansions in case patterns...
https://www.shellcheck.net/wiki/SC3043 -- In POSIX sh, 'local' is undefined.
https://www.shellcheck.net/wiki/SC1091 -- Not following: /usr/html/axis-cgi...