microsoft / mssql-docker

Official Microsoft repository for SQL Server in Docker resources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

configure_db.sh fix logical and syntax errors on the if statements

robert-s-lee opened this issue · comments

while [[ $DBSTATUS -ne 0 ]] && [[ $i -lt 60 ]] && [[ $ERRCODE -ne 0 ]]; do

should be while [[ $DBSTATUS -ne 0 || $ERRCODE -ne 0 ]] && [[ $i -lt 60 ]]; do

if [ $DBSTATUS -ne 0 ] OR [ $ERRCODE -ne 0 ]; then
have syntax errors

should be if [[ $DBSTATUS -ne 0 || $ERRCODE -ne 0 ]]; then

Thanks for this fix! This should really be merged.

Also faced the problem of running the script, robert-s-lee's comment helped. Kudos!