Skip to content

Instantly share code, notes, and snippets.

View m-overlund's full-sized avatar

Michael Davidsen m-overlund

View GitHub Profile
@m-overlund
m-overlund / cache-warmer.sh
Created February 1, 2022 14:55 — forked from hn-support/cache-warmer.sh
A cache warmer in bash using curl
#!/bin/bash
if [ "$#" -ne 1 ] || [ "x$1" == "x" ] ; then
echo "Usage: $0 <sitemap.xml>"
exit 0;
fi
if [ ! -f "$1" ]; then
echo "Sitemap file $1 not found! Exit!"
exit 1