fix(prog/xmonad/xmobar): diff sign

This commit is contained in:
Dmitriy Pleshevskiy 2022-05-28 13:09:54 +03:00
parent df15f52456
commit b9ae47e146

View file

@ -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#<\/\?\w\+>##g" | \
sed -e "s/,/./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="↑" arror="↑"
color='#50fa7b' color='#50fa7b'
if [ ${diff:0:1} == '-' ]; then if [ ${diff:0:1} == '-' ]; then