fix weather trends

This commit is contained in:
Cyryl Płotnicki 2020-09-26 13:31:58 +01:00
parent e71292029c
commit e6d2f7d5df

View file

@ -87,9 +87,9 @@ if [ -n "$current" ] && [ -n "$forecast" ]; then
if [ "$current_temp" -gt "$forecast_temp" ]; then if [ "$current_temp" -gt "$forecast_temp" ]; then
trend="" trend=""
elif [ "$forecast_temp" -gt "$current_temp" ]; then elif [ "$forecast_temp" -gt "$current_temp" ]; then
trend=""
else
trend="" trend=""
else
trend=""
fi fi
echo "$(get_icon "$current_icon") $current_temp($current_feels)$SYMBOL $trend $(get_icon "$forecast_icon") $forecast_temp($forecast_feels)$SYMBOL" echo "$(get_icon "$current_icon") $current_temp($current_feels)$SYMBOL $trend $(get_icon "$forecast_icon") $forecast_temp($forecast_feels)$SYMBOL"