From 9469745abc2223c06b2558e2f12ff901fa271847 Mon Sep 17 00:00:00 2001 From: Peter Wagner Sandoval Moreno Date: Sat, 21 Sep 2024 00:16:58 -0500 Subject: [PATCH] Update configure-db.sh Use the pipe for OR operator in bash --- linux/preview/examples/mssql-customize/configure-db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/preview/examples/mssql-customize/configure-db.sh b/linux/preview/examples/mssql-customize/configure-db.sh index be49de93..993d74b7 100644 --- a/linux/preview/examples/mssql-customize/configure-db.sh +++ b/linux/preview/examples/mssql-customize/configure-db.sh @@ -16,7 +16,7 @@ while [[ $DBSTATUS -ne 0 ]] && [[ $i -lt 60 ]] && [[ $ERRCODE -ne 0 ]]; do sleep 1 done -if [ $DBSTATUS -ne 0 ] OR [ $ERRCODE -ne 0 ]; then +if [ $DBSTATUS -ne 0 ] || [ $ERRCODE -ne 0 ]; then echo "SQL Server took more than 60 seconds to start up or one or more databases are not in an ONLINE state" exit 1 fi