home
/
code
/
khome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
858aa23
)
Support passing weather location
author
Siraaj Khandkar
<siraaj@khandkar.net>
Fri, 10 Jan 2020 20:46:51 +0000
(15:46 -0500)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Fri, 10 Jan 2020 20:46:51 +0000
(15:46 -0500)
home/lib/login_functions.sh
patch
|
blob
|
blame
|
history
diff --git
a/home/lib/login_functions.sh
b/home/lib/login_functions.sh
index
5cb3709
..
4517697
100644
(file)
--- a/
home/lib/login_functions.sh
+++ b/
home/lib/login_functions.sh
@@
-312,7
+312,12
@@
note() {
}
weather() {
- curl "http://wttr.in/$WEATHER_LOCATION"
+ local _weather_location
+ case "$1" in
+ '') _weather_location="$WEATHER_LOCATION";;
+ *) _weather_location="$1"
+ esac
+ curl "http://wttr.in/$_weather_location"
}
bt_devs_paired() {
This page took
0.027274 seconds
and
4
git commands to generate.