Files
rules_bun/tests/binary_test/run_parent_env_binary.sh
eric 23a95bae53
Some checks failed
CI / test (macos-14, darwin-arm64) (push) Has been cancelled
CI / test (windows-latest, windows) (push) Has been cancelled
CI / test (ubuntu-latest, linux-x64) (push) Has been cancelled
Docs Pages / deploy (push) Has been cancelled
fix: .env is located next to package.json
2026-03-04 15:03:15 +01:00

11 lines
206 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
binary="$1"
output="$(${binary})"
if [[ ${output} != "from-parent-dotenv" ]]; then
echo "Expected .env value from parent directory, got: ${output}" >&2
exit 1
fi