Fixes the shellcheck issues

This commit is contained in:
Trenton Holmes
2022-09-11 07:42:20 -07:00
parent 537e7c63f4
commit 140e239bdb
+2 -2
View File
@@ -37,7 +37,7 @@ wait_for_mariadb() {
attempt_num=1
max_attempts=5
while ! </dev/tcp/$host/$port; do
while ! true > /dev/tcp/$host/$port; do
if [ $attempt_num -eq $max_attempts ]; then
echo "Unable to connect to database."
@@ -47,7 +47,7 @@ wait_for_mariadb() {
fi
attempt_num=$(expr "$attempt_num" + 1)
attempt_num=$(("$attempt_num" + 1))
sleep 5
done
}