From b9ae47e146044db078f1bce5966e1940819d7dd9 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Sat, 28 May 2022 13:09:54 +0300 Subject: [PATCH] fix(prog/xmonad/xmobar): diff sign --- programs/xmonad/xmobar/scripts/cbr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/xmonad/xmobar/scripts/cbr.sh b/programs/xmonad/xmobar/scripts/cbr.sh index bc7d02c..18f4f68 100755 --- a/programs/xmonad/xmobar/scripts/cbr.sh +++ b/programs/xmonad/xmobar/scripts/cbr.sh @@ -13,7 +13,7 @@ cc=($(curl --no-progress-meter "https://www.cbr.ru/scripts/XML_dynamic.asp?date_ sed -e "s#<\/\?\w\+>##g" | \ sed -e "s/,/./g")) -diff=$(echo ${cc[-2]} ${cc[-1]} | awk '{ print $1 - $2 }') +diff=$(echo ${cc[-1]} ${cc[-2]} | awk '{ print $1 - $2 }') arror="↑" color='#50fa7b' if [ ${diff:0:1} == '-' ]; then