1 2 3 4 5 6 7 8 9 10 11
#!/usr/bin/env bash # Mock scutil for integration tests. set -euo pipefail if [[ "${1:-}" == "--get" && "${2:-}" == "LocalHostName" ]]; then echo "${MOCK_HOSTNAME:-test-host}" exit 0 fi echo "mock scutil: unsupported args: $*" >&2 exit 1