Browse files

Fixed reset_tests.sh script

  • Loading branch information...
1 parent 865511a commit 43e4ae75976b94d371590b4fdb2a5a86743f61fa @willdurand willdurand committed Mar 5, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 test/reset_tests.sh
View
9 test/reset_tests.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# Reset Propel tests fixtures
# 2011 - William Durand <william.durand1@gmail.com>
@@ -43,7 +43,8 @@ done
REVERSE_DIRS=`ls $FIXTURES_DIR/reverse`
for dir in $REVERSE_DIRS ; do
- echo "[ $dir ]"
-
- $ROOT/generator/bin/propel-gen $FIXTURES_DIR/reverse/$dir insert-sql
+ if [ -f "$FIXTURES_DIR/reverse/$dir/build.properties" ] ; then
+ echo "[ $dir ]"
+ $ROOT/generator/bin/propel-gen $FIXTURES_DIR/reverse/$dir insert-sql
+ fi
done

0 comments on commit 43e4ae7

Please sign in to comment.