mirror of https://github.com/archzfs/archzfs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
402 B
18 lines
402 B
12 years ago
|
#!/bin/bash
|
||
|
|
||
|
REPO_BASEPATH="/data/pacman/repo"
|
||
|
REMOTE_LOGIN="jalvarez@jalvarez.webfactional.com"
|
||
|
|
||
|
source "lib.sh"
|
||
|
|
||
|
check_webpage() {
|
||
|
# $1: The url to scrape
|
||
|
# $2: The Perl regex to match with
|
||
|
# $3: Expect match
|
||
|
# Sends a message on mismatch
|
||
|
MSTR=$(curl -s "$1" | grep -Po "$2")
|
||
|
if [[ $MSTR != "$3" ]]; then
|
||
|
error "Checking \"$1\" expected \"$3\" got \"$MSTR\""
|
||
|
fi
|
||
|
}
|