Skip to content

Commit cf83a97

Browse files
committed
Shell check
1 parent e64e7e0 commit cf83a97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

segments/weather.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ __yrno() {
102102
fi
103103

104104
# Ref: https://api.met.no/doc/TermsOfService
105-
local user_agent="tmux-powerline/$(tp_version) (https://github.com/erikw/tmux-powerline)"
105+
local user_agent
106+
user_agent="tmux-powerline/$(tp_version) (https://github.com/erikw/tmux-powerline)"
106107

107108
if weather_data=$(curl --max-time 4 -A "$user_agent" -s "https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${TMUX_POWERLINE_SEG_WEATHER_LAT}&lon=${TMUX_POWERLINE_SEG_WEATHER_LON}"); then
108109
error=$(echo "$weather_data" | grep -i "error")

0 commit comments

Comments
 (0)