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...
f_last_lines_array+=("${f_line}")
# ... 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}

View File

@ -23,7 +23,6 @@ function get_vars_from_csv {
# if there are not four lines
if [ -z "${f_last_lines_array[3]}" ]
then
unset f_last_lines_array
return 1
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_4_last_line_array < <(echo "0,${f_last_lines_array[0]}")
# remove f_last_lines_array
unset f_last_lines_array
# bash-only basename
f_asset="${f_ASSET_HIST_FILE##*/}"