github.com/buildpacks/pack@v0.33.3-0.20240516162812-884dd1837311/acceptance/testdata/mock_buildpacks/internet-capable-buildpack/bin/build (about)

     1  #!/usr/bin/env bash
     2  
     3  echo "---> Build: Internet Capable Buildpack"
     4  
     5  set -o errexit
     6  set -o nounset
     7  set -o pipefail
     8  
     9  
    10  if netcat -z -w 1 google.com 80; then
    11    echo "RESULT: Connected to the internet"
    12  else
    13    echo "RESULT: Disconnected from the internet"
    14  fi
    15  
    16  echo "---> Done"