Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/github/pr/153'
Browse files Browse the repository at this point in the history
  • Loading branch information
mika committed Jun 30, 2023
2 parents 74a8efd + b973152 commit 89e81cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr_share_grml/zsh/functions/weather
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ local PLACE="${1:u}"
local DIR="${HOME}/.weather"
local LOG="${DIR}/log"

if [[ -d ${DIR} ]]; then
if ! [[ -d ${DIR} ]]; then
print -n "Creating ${DIR}: "
mkdir ${DIR}
print 'done'
Expand All @@ -27,7 +27,7 @@ print "Retrieving information for ${PLACE}:"
print
cd ${DIR} && \
wget -T 10 --no-verbose --output-file=$LOG --timestamping \
http://weather.noaa.gov/pub/data/observations/metar/decoded/$PLACE.TXT
https://tgftp.nws.noaa.gov/data/observations/metar/decoded/$PLACE.TXT

if [[ $? -eq 0 ]]; then
if [[ -n "$VERBOSE" ]] ; then
Expand Down

0 comments on commit 89e81cd

Please sign in to comment.