mssql-docker icon indicating copy to clipboard operation
mssql-docker copied to clipboard

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

Open robert-s-lee opened this issue 2 years ago • 2 comments

https://github.com/microsoft/mssql-docker/blob/80e2a51d0eb1693f2de014fb26d4a414f5a5add5/linux/preview/examples/mssql-customize/configure-db.sh#L12

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

https://github.com/microsoft/mssql-docker/blob/80e2a51d0eb1693f2de014fb26d4a414f5a5add5/linux/preview/examples/mssql-customize/configure-db.sh#L19 have syntax errors

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

robert-s-lee avatar Jun 25 '23 15:06 robert-s-lee

Thanks for this fix! This should really be merged.

Darrekt avatar Aug 12 '23 02:08 Darrekt

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

yevheniilavrenchuk avatar Aug 16 '23 14:08 yevheniilavrenchuk