feat: adicionado if then

This commit is contained in:
2026-05-19 02:38:08 +00:00
parent 1f366d5d70
commit dc36dd2eef
2 changed files with 18 additions and 0 deletions
+7
View File
@@ -1,4 +1,11 @@
#!/bin/bash
HOST="8.8.8.8"
echo "Testando conectividade..."
echo "🌐 Testando conectividade com $HOST..."
ping -c 4 $HOST
if [ $? -eq 0 ]; then
echo "✅ Conexão OK"
else
echo "❌ Falha na conexão"
exit 1
fi