fixes
This commit is contained in:
parent
fec1d474c6
commit
0b80ca425b
@ -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}
|
||||
|
||||
|
@ -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##*/}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user