This commit is contained in:
olli 2023-11-29 17:47:01 +01:00
parent fec1d474c6
commit 0b80ca425b
2 changed files with 2 additions and 5 deletions

View File

@ -86,7 +86,8 @@ function analyze {
# ad line to last lines array... # ad line to last lines array...
f_last_lines_array+=("${f_line}") f_last_lines_array+=("${f_line}")
# ... and stop here until 4 elements are present # ... and stop here until 4 elements are present
[ -z "${f_last_lines_array[3]}" ] && continue #[ -z "${f_last_lines_array[3]}" ] && continue
[ ${#f_last_lines_array[@]} -le 3 ] && continue
echo "$line" >>${g_tmp}/${tmpfile} echo "$line" >>${g_tmp}/${tmpfile}

View File

@ -23,7 +23,6 @@ function get_vars_from_csv {
# if there are not four lines # if there are not four lines
if [ -z "${f_last_lines_array[3]}" ] if [ -z "${f_last_lines_array[3]}" ]
then then
unset f_last_lines_array
return 1 return 1
fi fi
@ -34,9 +33,6 @@ function get_vars_from_csv {
readarray -d "," -t f_3_last_line_array < <(echo "0,${f_last_lines_array[1]}") readarray -d "," -t f_3_last_line_array < <(echo "0,${f_last_lines_array[1]}")
readarray -d "," -t f_4_last_line_array < <(echo "0,${f_last_lines_array[0]}") readarray -d "," -t f_4_last_line_array < <(echo "0,${f_last_lines_array[0]}")
# remove f_last_lines_array
unset f_last_lines_array
# bash-only basename # bash-only basename
f_asset="${f_ASSET_HIST_FILE##*/}" f_asset="${f_ASSET_HIST_FILE##*/}"