summaryrefslogtreecommitdiff
path: root/sb-weather
diff options
context:
space:
mode:
Diffstat (limited to 'sb-weather')
-rwxr-xr-xsb-weather2
1 files changed, 1 insertions, 1 deletions
diff --git a/sb-weather b/sb-weather
index dfaad4b..f3a5aca 100755
--- a/sb-weather
+++ b/sb-weather
@@ -24,7 +24,7 @@ get_weather_emoji() {
showweather(){
temp=$(jq -r '.current_condition[0].temp_C' $report)
code=$(jq -r '.current_condition[0].weatherCode' $report)
- rainchance=$(jq '.weather[].hourly[].chanceofrain | tonumber' $report | sort -n | tail -n 1)
+ rainchance=$(jq '.weather[0].hourly[0].chanceofrain | tonumber' $report)
emoji=$(get_weather_emoji "$code")
case "$arg" in