👽
This commit is contained in:
1 parent
0b17aa140b
commit
dde4ef218a
136 files changed
+9796
No files matched your search
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
weather=$(curl -s wttr.in/Kohalpur?format=3)
|
||||
|
||||
if [ $(echo "$weather" | grep -E "(Unknown|curl|HTML)" | wc -l) -gt 0 ]; then
|
||||
echo "WEATHER UNAVAILABLE"
|
||||
else
|
||||
echo "$weather" | awk '{print $2" "$3}'
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user