more pure bash to speed up things
This commit is contained in:
parent
ce55b2b468
commit
a0dd7fca2c
@ -17,10 +17,10 @@ function get_vars_from_csv {
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
# read last 4 lines in array if not given
|
# read last 4 lines in array if not given
|
||||||
if [ -z "${f_last_lines_array}" ]
|
#if [ -z "${f_last_lines_array}" ]
|
||||||
then
|
#then
|
||||||
mapfile -t f_last_lines_array <<< $(tail -n4 "${f_ASSET_HIST_FILE}")
|
mapfile -t f_last_lines_array <<< $(tail -n4 "${f_ASSET_HIST_FILE}")
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# 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]}" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user