mirror of
https://github.com/notwa/rc
synced 2024-10-31 16:54:35 -07:00
7 lines
135 B
Bash
Executable file
7 lines
135 B
Bash
Executable file
#!/usr/bin/zsh
|
|
isup() {
|
|
local c
|
|
curl -sLI -w '%{http_code}' -o /dev/null "$1" | read -r c
|
|
[ "${c:0:1}" -eq 2 ]
|
|
}
|
|
isup "$@"
|