From 589d510bc3cf7bd369a7da2721091950ea39b87a Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 5 May 2026 06:19:43 +0200 Subject: [PATCH] Fix a typo in 0004-general-uri-scheme/data/test/uri-scheme-tester.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TMPDIR → TMP, and move its creation to be before its use --- 0004-general-uri-scheme/data/test/uri-scheme-tester.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/0004-general-uri-scheme/data/test/uri-scheme-tester.sh b/0004-general-uri-scheme/data/test/uri-scheme-tester.sh index 5616044..c0c3f94 100755 --- a/0004-general-uri-scheme/data/test/uri-scheme-tester.sh +++ b/0004-general-uri-scheme/data/test/uri-scheme-tester.sh @@ -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}"