From d28b617bacebb4f080fd7e7486279bcde23b96e5 Mon Sep 17 00:00:00 2001 From: Igor Date: Fri, 1 Dec 2023 22:19:27 +0300 Subject: [PATCH] Changing the variable --- weather.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weather.sh b/weather.sh index 0df9c9c..8a705a5 100755 --- a/weather.sh +++ b/weather.sh @@ -94,7 +94,8 @@ elif [[ "$weather_desc" == "fog" || "$weather_desc" == "mist" ]]; then echo -e "\t\e[31mthe fog is coming owo~\e[0m" fi -if [ "$wind_speed" -gt 8 ] ; then +wind_speed_rounded=$(echo "$wind_speed" | awk '{ print int($1) }') +if [ "$wind_speed_rounded" -gt 8 ] ; then echo -e "\t\e[36mwind is stwong, be caweful!\e[0m" fi