Merge pull request #1 from AnilAntari/feature

Changing the $wind_speed variable
This commit is contained in:
hornet 2023-12-03 00:06:28 +06:00 committed by GitHub
commit 9524683c5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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