From 95e34af6ef26dfa2c598fd82e13598947ec347b8 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 28 Mar 2015 06:51:54 +0100 Subject: [PATCH] Update script [skip ci] --- pu.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pu.sh b/pu.sh index ca20643e98..aadd2e151f 100755 --- a/pu.sh +++ b/pu.sh @@ -1,7 +1,10 @@ #!/bin/bash # create DB if not exists -rm -f tests/database/db.sqlite -touch tests/database/db.sqlite -php artisan migrate --seed + +if [ ! -f tests/database/db.sqlite ]; then + touch tests/database/db.sqlite + php artisan migrate --seed +fi + phpunit \ No newline at end of file