Radish alpha
r
Radicle Improvement Proposals (RIPs)
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix a typo in 0004-general-uri-scheme/data/test/uri-scheme-tester.sh
Richard Levitte committed 15 days ago
commit 589d510bc3cf7bd369a7da2721091950ea39b87a
parent 43301b47e5643de823fc14c51e4826dde54db3fb
1 file changed +2 -3
modified 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}"