projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
74a8efd
)
Merge remote-tracking branch 'origin/github/pr/153'
author
Michael Prokop
<mika@grml.org>
Fri, 30 Jun 2023 10:39:53 +0000
(12:39 +0200)
committer
Michael Prokop
<mika@grml.org>
Fri, 30 Jun 2023 10:39:53 +0000
(12:39 +0200)
usr_share_grml/zsh/functions/weather
patch
|
blob
|
history
diff --git
a/usr_share_grml/zsh/functions/weather
b/usr_share_grml/zsh/functions/weather
index
b89e597
..
bf303bf
100644
(file)
--- a/
usr_share_grml/zsh/functions/weather
+++ b/
usr_share_grml/zsh/functions/weather
@@
-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'
@@
-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
+ http
s://tgftp.nws.noaa.gov
/data/observations/metar/decoded/$PLACE.TXT
if [[ $? -eq 0 ]]; then
if [[ -n "$VERBOSE" ]] ; then