mirror of
https://github.com/notwa/rc
synced 2024-11-05 06:29:02 -08:00
8 lines
135 B
Text
8 lines
135 B
Text
|
#!/usr/bin/zsh
|
||
|
isup() {
|
||
|
local c
|
||
|
curl -sLI -w '%{http_code}' -o /dev/null "$1" | read -r c
|
||
|
[ "${c:0:1}" -eq 2 ]
|
||
|
}
|
||
|
isup "$@"
|