Commit 044a0bbd authored by j38560's avatar j38560

Added nullglob to stop wildcard being returned when no matching pattern.

parent 2f1865f5
......@@ -8,7 +8,9 @@ source $ROOT/functions.sh
runRemoteSQL $ROOT/../source/setup.sql
if [ -d $ROOT/../source/tables/ ]; then
shopt -s nullglob
if [ -d $ROOT/../source/tables ]; then
for f in $ROOT/../source/tables/*.sql
do
runRemoteSQL "$f"
......@@ -17,7 +19,7 @@ else
echo "No table scripts found"
fi
if [ -d $ROOT/../source/fk/ ]; then
if [ -d $ROOT/../source/fk ]; then
for f in $ROOT/../source/fk/*.sql
do
runRemoteSQL "$f"
......@@ -26,7 +28,7 @@ else
echo "No FK scripts found"
fi
if [ -d $ROOT/../source/views/ ]; then
if [ -d $ROOT/../source/views ]; then
for f in $ROOT/../source/views/*.sql
do
runRemoteSQL "$f"
......@@ -35,7 +37,7 @@ else
echo "No View scripts found"
fi
if [ -d $ROOT/../source/indexes/ ]; then
if [ -d $ROOT/../source/indexes ]; then
for f in $ROOT/../source/indexes/*.sql
do
runRemoteSQL "$f"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment