Quoting $DEFAULT_DB so empty values don't mess up arg parsing

This commit is contained in:
Jason Fulghum
2023-06-07 14:38:29 -07:00
parent f6a2048e83
commit 1b9f5b436e
@@ -17,7 +17,7 @@ wait_for_connection() {
# exit code, so we need to temporarily enable 'set +e', but be sure to turn 'set -e' back on before we exit.
set +e
while [ $SECONDS -lt $end_time ]; do
dolt sql-client -u $user --host localhost --port $port --use-db $DEFAULT_DB --timeout 1 -q "SELECT 1;"
dolt sql-client -u $user --host localhost --port $port --use-db "$DEFAULT_DB" --timeout 1 -q "SELECT 1;"
if [ $? -eq 0 ]; then
echo "Connected successfully!"
set -e