Skip to content

Commit

Permalink
fix unchanged price check
Browse files Browse the repository at this point in the history
  • Loading branch information
pstadler committed Feb 19, 2021
1 parent 93b1bd7 commit 9cb765a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ticker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ for symbol in $(IFS=' '; echo "${SYMBOLS[*]}" | tr '[:lower:]' '[:upper:]'); do
percent=$(query $symbol 'regularMarketChangePercent')
fi

if [ "$diff" == "0" ]; then
if [ "$diff" == "0" ] || [ "$diff" == "0.0" ]; then
color=
elif ( echo "$diff" | grep -q ^- ); then
color=$COLOR_RED
Expand Down

0 comments on commit 9cb765a

Please sign in to comment.