From 723c95d8b1b7f209778580d5ac69a15e8e6106c5 Mon Sep 17 00:00:00 2001 From: olli Date: Mon, 6 Nov 2023 18:02:08 +0100 Subject: [PATCH] tmp fix --- dabo/analyze.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dabo/analyze.sh b/dabo/analyze.sh index 72424bf..e5c11da 100755 --- a/dabo/analyze.sh +++ b/dabo/analyze.sh @@ -21,7 +21,7 @@ function analyze { . /etc/bash/gaboshlib.include - g_tmp=$2 + g_tmp="$2" #for bashfunc in $(find /etc/bash/gaboshlib -type f -name "g_*.bashfunc" -o -name "g_*.sh") #do # . "$bashfunc" @@ -47,7 +47,7 @@ function analyze { rm -f ${g_tmp}/interim-${tmpfile} rm -f ${g_tmp}/output-${tmpfile} - ORIGIFS="$IFS" + local f_ORIGIFS="$IFS" IFS=$'\n' # Chart Part @@ -60,7 +60,7 @@ function analyze { f_sell_score="" f_buy_score="" # Chart Part End - IFS="$ORIGIFS" + IFS=$f_ORIGIFS current=$(echo $line | cut -d, -f2) time=$(echo $line | cut -d, -f1 | cut -d: -f1,2) f_market_performance=$(grep "^$time" data/botdata/MARKET_PERFORMANCE | tail -n1 | cut -d: -f4 | cut -d"%" -f1 | sed 's/ *//')