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 ...@@ -8,7 +8,9 @@ source $ROOT/functions.sh
runRemoteSQL $ROOT/../source/setup.sql 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 for f in $ROOT/../source/tables/*.sql
do do
runRemoteSQL "$f" runRemoteSQL "$f"
...@@ -17,7 +19,7 @@ else ...@@ -17,7 +19,7 @@ else
echo "No table scripts found" echo "No table scripts found"
fi fi
if [ -d $ROOT/../source/fk/ ]; then if [ -d $ROOT/../source/fk ]; then
for f in $ROOT/../source/fk/*.sql for f in $ROOT/../source/fk/*.sql
do do
runRemoteSQL "$f" runRemoteSQL "$f"
...@@ -26,7 +28,7 @@ else ...@@ -26,7 +28,7 @@ else
echo "No FK scripts found" echo "No FK scripts found"
fi fi
if [ -d $ROOT/../source/views/ ]; then if [ -d $ROOT/../source/views ]; then
for f in $ROOT/../source/views/*.sql for f in $ROOT/../source/views/*.sql
do do
runRemoteSQL "$f" runRemoteSQL "$f"
...@@ -35,7 +37,7 @@ else ...@@ -35,7 +37,7 @@ else
echo "No View scripts found" echo "No View scripts found"
fi fi
if [ -d $ROOT/../source/indexes/ ]; then if [ -d $ROOT/../source/indexes ]; then
for f in $ROOT/../source/indexes/*.sql for f in $ROOT/../source/indexes/*.sql
do do
runRemoteSQL "$f" 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