From f69d75b1b73061bc4cac54bf6bd1244eae1f1f7b Mon Sep 17 00:00:00 2001 From: olli Date: Fri, 18 Oct 2024 23:07:25 +0200 Subject: [PATCH] fix --- dabo/functions/get_marketdata_coinmarketcap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dabo/functions/get_marketdata_coinmarketcap.sh b/dabo/functions/get_marketdata_coinmarketcap.sh index 5fde11f..c3d0838 100644 --- a/dabo/functions/get_marketdata_coinmarketcap.sh +++ b/dabo/functions/get_marketdata_coinmarketcap.sh @@ -64,7 +64,7 @@ function get_marketdata_coinmarketcap { local f_id # get id -> If multiple take the one with the largest marketcap - f_id=$(egrep "^${f_item},[1-9]" COINMARKETCAPIDS COINMARKETCAPIDS.tmp | sort -n -t, -k4 | tail -n1 | cut -d, -f2) + f_id=$(egrep "^${f_item},[1-9]" COINMARKETCAPIDS COINMARKETCAPIDS.tmp 2>/dev/null | sort -n -t, -k4 | tail -n1 | cut -d, -f2) [[ $f_item = EURC ]] && f_id=20641 if [ -z "$f_id" ] then