Skip to content

Commit

Permalink
Exit provisioning scripts on any error
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Barciauskas authored and jbarciauskas committed Mar 28, 2017
1 parent 3fe7d59 commit 817491c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions load-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#
# This will load the edxapp database from a file named exapp.sql.

set -e
set -o pipefail

if [ -z "$1" ]
then
echo "You must supply a database name!"
Expand Down
3 changes: 3 additions & 0 deletions provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
# 4. Static assets compiled/collected.


set -e
set -o pipefail

RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
Expand Down

0 comments on commit 817491c

Please sign in to comment.