Fix a typo in 0004-general-uri-scheme/data/test/uri-scheme-tester.sh

TMPDIR → TMP, and move its creation to be before its use
This commit is contained in:
Richard Levitte
2026-05-05 06:19:43 +02:00
parent 43301b47e5
commit 589d510bc3
@@ -13,16 +13,15 @@ if ! command -v yq > /dev/null; then
fi
readonly DATA="${1:-"$(git rev-parse --show-toplevel)/0004-general-uri-scheme/data"}"
readonly TMP="$(mktemp -d)"
readonly RAD_URI_NE="${DATA}/rad-uri.ne"
readonly RAD_URI_JS="$TMPDIR/rad-uri.js"
readonly RAD_URI_JS="${TMP}/rad-uri.js"
if ! nearleyc -o "$RAD_URI_JS" "$RAD_URI_NE"; then
exit 1
fi
readonly TMP="$(mktemp -d)"
FAILED=0
for EXPECTED in "${DATA}"/test/tc*-expected.json; do
INPUT="${EXPECTED%-expected.json}"