diff --git a/dabo/analyze.sh b/dabo/analyze.sh index ee73a96..52b86ec 100755 --- a/dabo/analyze.sh +++ b/dabo/analyze.sh @@ -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} diff --git a/dabo/functions/get_vars_from_csv.sh b/dabo/functions/get_vars_from_csv.sh index 357ce6a..c89d3af 100644 --- a/dabo/functions/get_vars_from_csv.sh +++ b/dabo/functions/get_vars_from_csv.sh @@ -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##*/}"