mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-01 20:00:22 -05:00
Quoting $DEFAULT_DB so empty values don't mess up arg parsing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user