github.com/balena-os/balena-engine-cli@v20.10.11+incompatible/scripts/warn-outside-container (about)

     1  #!/usr/bin/env sh
     2  set -eu
     3  
     4  target="${1:-}"
     5  
     6  if [ "$target" != "help" ] && [ -z "${DISABLE_WARN_OUTSIDE_CONTAINER:-}" ]; then
     7      (
     8          echo
     9          echo
    10          echo "WARNING: you are not in a container."
    11          echo "Use \"make -f docker.Makefile $target\" or set"
    12          echo "DISABLE_WARN_OUTSIDE_CONTAINER=1 to disable this warning."
    13          echo
    14          echo "Press Ctrl+C now to abort."
    15          echo
    16      ) >&2
    17      sleep 10
    18  fi