linux_verify.sh 471 B

123456789101112131415161718
  1. #!/bin/bash
  2. # This script verifies that all shell snippets in the
  3. # Linux installation tutorial work (in Ubuntu 18 container)
  4. set -e
  5. set -x
  6. SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
  7. docker pull ubuntu:18.04
  8. for f in $(cd "${SCRIPT_DIR}" && ls -1 linux_*install*.sh) ; do
  9. echo "Checking $f..."
  10. docker run -it \
  11. --volume "${SCRIPT_DIR}":/install:ro \
  12. ubuntu:18.04 \
  13. /bin/bash -ex /install/$f --check
  14. done