Index: tools/checkmirrors =================================================================== --- tools/checkmirrors (revision 107) +++ tools/checkmirrors (working copy) @@ -24,6 +24,11 @@ # The listed URLS should have as their first line a time in seconds # since the epoch +if [ $# -ne 2 ] ; then + echo "Usage: checkmirrors mirrorinfo output_page" + exit 1 +fi + LOCKFILE="$2".lock if ! ln -s "$$.$HOSTNAME" "$LOCKFILE"; then echo "Error: lockfile '$LOCKFILE' exists" @@ -35,6 +40,8 @@ # Possible symlink attack here, make sure permissions are good cat < "$2.$$" + Mirror Freshness