Fix shell check variable quotation.

Signed-off-by: Jehu Marcos Herrera Puentes <58377032+JMarcosHP@users.noreply.github.com>
This commit is contained in:
Jehu Marcos Herrera Puentes 2024-12-16 11:26:03 -06:00 committed by GitHub
parent c5da6e718f
commit 5f844aeeb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,8 +6,8 @@ COUNT=1
# Wait until the domain is reachable
sleep 15
while [ $COUNT -le $MAX_RETRY ]; do
if nc -z $NC_DOMAIN 443; then
while [ "$COUNT" -le "$MAX_RETRY" ]; do
if nc -z "$NC_DOMAIN" 443; then
echo "Domain reached."
break
else
@ -16,7 +16,7 @@ while [ $COUNT -le $MAX_RETRY ]; do
((COUNT++))
fi
done
if [ $COUNT -gt $MAX_RETRY ]; then
if [ "$COUNT" -gt "$MAX_RETRY" ]; then
echo "The domain could not be reached after $MAX_RETRY attempts. Proceeding anyway..."
fi