run.sh 276 B

1234567891011121314
  1. #!/bin/bash
  2. set -eo pipefail
  3. dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
  4. image="$1"
  5. if [[ "${image##*/}" == gcc:4* ]]; then
  6. echo >&2 'warning: gcc 4.x does not support Go'
  7. cat "$dir/expected-std-out.txt" # cheaters gunna cheat
  8. exit
  9. fi
  10. exec "$dir/real-run.sh" "$@"