diff --git a/bin/deploy_to_test.sh b/bin/deploy_to_test.sh index 5fa15085d4433874e12ed8138cb7993454b773fe..e00ec93afb91cd068a2fea2320a9ddff37fc50c9 100644 --- a/bin/deploy_to_test.sh +++ b/bin/deploy_to_test.sh @@ -8,7 +8,7 @@ source $ROOT/functions.sh runRemoteSQL $ROOT/../source/setup.sql -if [ -f $ROOT/../source/tables/ ]; then +if [ -d $ROOT/../source/tables/ ]; then for f in $ROOT/../source/tables/ do runRemoteSQL "$f" @@ -17,7 +17,7 @@ else echo "No table scripts found" fi -if [ -f $ROOT/../source/fk/ ]; then +if [ -d $ROOT/../source/fk/ ]; then for f in $ROOT/../source/fk/ do runRemoteSQL "$f"