|
|
@ -11,17 +11,6 @@ REMOTE_LOGIN="jalvarez@jalvarez.webfactional.com" |
|
|
|
|
|
|
|
|
|
|
|
source "lib.sh" |
|
|
|
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 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
compute_local_repo_hash() { |
|
|
|
compute_local_repo_hash() { |
|
|
|
# $1: The repository to compute |
|
|
|
# $1: The repository to compute |
|
|
|
# Sets LOCAL_REPO_HASH |
|
|
|
# Sets LOCAL_REPO_HASH |
|
|
|