diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml new file mode 100644 index 0000000..2a4427a --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,11 @@ +name: ShellCheck +on: + push: + pull_request: + +jobs: + shellcheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run ShellCheck diff --git a/scripts/ping_monitor.sh b/scripts/ping_monitor.sh index c88c89a..03d7b92 100755 --- a/scripts/ping_monitor.sh +++ b/scripts/ping_monitor.sh @@ -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