From abcbbdcfcf6f2d07f6762360d6232d50c453aaf3 Mon Sep 17 00:00:00 2001 From: j38560 Date: Mon, 19 Dec 2016 15:23:38 +0000 Subject: [PATCH] Fixed directory check --- bin/deploy_to_test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/deploy_to_test.sh b/bin/deploy_to_test.sh index 5fa1508..e00ec93 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" -- GitLab