Browse Source

~/.bin/check-papill0n.sh: Fail if request takes longer than 2 seconds

Lucas Stadler 8 years ago
parent
commit
7c2de4874c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .bin/check-papill0n.sh

+ 1 - 1
.bin/check-papill0n.sh

@ -5,7 +5,7 @@ status=0
5 5
check_url() {
6 6
	url="$1"
7 7
8
	if curl --fail --show-error --silent --location "$url" > /dev/null; then
8
	if curl --fail --show-error --silent --max-time 2 --location "$url" > /dev/null; then
9 9
		echo -e "[\033[0;32m✓\033[0m] $url"
10 10
	else
11 11
		echo -e "[ ] \033[0;31m$url\033[0m"