You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sessioncommunities.online/etc/fetch-compare-known.sh

18 lines
365 B
Bash

#!/bin/sh
cat <<EOF
Dry-running fetch script
EOF
/bin/php php/fetch-servers.php --verbose --dry-run > log.txt 2>&1;
cat <<EOF
Grep of log for each known server URL:
EOF
for url in $(jq -r 'map(.base_url) | .[] | ltrimstr("http://") | ltrimstr("https://")' output/servers.json); do
echo "Results for $url:";
echo;
grep "$url" log.txt;
echo ">";
read -r;
done