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
+11
View File
@@ -0,0 +1,11 @@
name: ShellCheck
on:
push:
pull_request:
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run ShellCheck
+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