From df13969551c1d4a1987afda34dd3bce16e1d6311 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Thu, 1 Jun 2017 21:59:06 -0700 Subject: [PATCH] Make todo example bootstrapping more resilient. --- examples/todo/bootstrap.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/todo/bootstrap.sh b/examples/todo/bootstrap.sh index f6be9914..fa781a45 100755 --- a/examples/todo/bootstrap.sh +++ b/examples/todo/bootstrap.sh @@ -4,6 +4,9 @@ SCRIPT_PATH=$(cd "$(dirname "$0")" ; pwd -P) DATABASE_URL=${SCRIPT_PATH}/db/db.sql pushd $SCRIPT_PATH > /dev/null + # clear an existing database + rm -f $DATABASE_URL + # install the diesel CLI tools if they're not installed if ! command -v diesel >/dev/null 2>&1; then cargo install diesel_cli > /dev/null