Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

crudely detect and handle 503 errors

  • Loading branch information...
commit 02efb7702fb84dd68e61912fafa15badc50861de 1 parent 46ac6e8
Zach Tatlock authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 xpost.sh
View
6 xpost.sh
@@ -16,6 +16,12 @@ touch OLD
curl -s $FEED > NEW
date >> log
+if grep "Error 503" NEW > /dev/null; then
+ echo "* RSS DOWN!" >> log
+ rm NEW
+ exit 1
+fi
+
if ! diff OLD NEW > /dev/null; then
echo "* UPDATE!" >> log
cp NEW "$(date +%y%m%d-%H%M).rss"
Please sign in to comment.
Something went wrong with that request. Please try again.