We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 034c46b commit c7f092cCopy full SHA for c7f092c
eng/pipelines/common/templates/steps/configure-sql-server-macos-step.yml
@@ -49,9 +49,9 @@ steps:
49
do
50
echo "Waiting for SQL Server to start (attempt #$counter)..."
51
sleep 3
52
- cmd="sqlcmd -S 127.0.0.1 -No -U sa -P $MSSQL_SA_PW -Q 'SELECT @@VERSION'"
53
- echo $cmd >>$SQLCMD_ERRORS
54
- $cmd 2>>$SQLCMD_ERRORS
+ cmd="sqlcmd -S 127.0.0.1 -No -U sa -P \"$MSSQL_SA_PW\" -Q \"SELECT @@VERSION\""
+ echo "$cmd" >> $SQLCMD_ERRORS
+ $cmd >> $SQLCMD_ERRORS 2>&1
55
errstatus=$?
56
((counter++))
57
done
0 commit comments