8 lines
168 B
Bash
Executable File
8 lines
168 B
Bash
Executable File
#!/usr/bin/env bash
|
|
result=$(curl -sf --max-time 10 "wttr.in/Umea,Sweden?format=+%c%t")
|
|
if [ $? -eq 0 ] && [ -n "$result" ]; then
|
|
echo "$result"
|
|
else
|
|
echo "N/A"
|
|
fi
|