From: Jean-Philippe Orsini Date: Fri, 10 Jun 2016 09:24:28 +0000 (+0200) Subject: exit on first error X-Git-Url: http://git.wpitchoune.net/gitweb/?p=www.git;a=commitdiff_plain;h=b9644f9b062061834e16b26353ff1626ecc64327 exit on first error --- diff --git a/psensor-www-update.sh b/psensor-www-update.sh index cb262b3..9179ee1 100755 --- a/psensor-www-update.sh +++ b/psensor-www-update.sh @@ -1,11 +1,13 @@ #!/bin/bash +set -e + GIT_DIR=git if [ ! -d $GIT_DIR/psensor ]; then git clone http://git.wpitchoune.net/psensor.git $GIT_DIR/psensor else - git -C $GIT_DIR/psensor pull + git -C $GIT_DIR/psensor pull fi asciidoctor $GIT_DIR/psensor/NEWS -D www/psensor @@ -13,4 +15,3 @@ asciidoctor $GIT_DIR/psensor/README -D www/psensor asciidoctor $GIT_DIR/psensor/doc/faq.txt -D www/psensor asciidoctor $GIT_DIR/psensor/doc/TODO.txt -D www/psensor -