summaryrefslogtreecommitdiff
path: root/publish.sh
diff options
context:
space:
mode:
Diffstat (limited to 'publish.sh')
-rwxr-xr-xpublish.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/publish.sh b/publish.sh
index 4f1adf6..5fbc75d 100755
--- a/publish.sh
+++ b/publish.sh
@@ -2,5 +2,12 @@
source ~/.virtualenvs/pelican3.5/bin/activate
cd ~/pelican/
make publish
+
+find output -name '*.html' -print0 | xargs -0 grep "{filename}"
+if [ $? -eq 0 ]; then
+ echo Lien cassé dans les fichiers listés ci dessus.
+ exit 1
+fi
+
rsync -ra --del -e ssh output/ goku:/home/www/blog-chimrod/
rsync -ra --del -e ssh output/ vps71296:/srv/apache/blog-chimrod/