fix(tools): make build-wasm-modules.sh source dir absolute (#7834)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Peter Feerick
2026-09-27 19:52:03 +10:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 99b17f0011
commit a197c43b51
+7
View File
@@ -10,6 +10,13 @@ if [[ -z ${SRCDIR} ]]; then
SRCDIR="$(pwd)" SRCDIR="$(pwd)"
fi fi
# Make SRCDIR absolute, as it is also used from within other directories
# (e.g. the WASI SDK fetch project below)
if ! SRCDIR="$(cd "${SRCDIR}" && pwd)"; then
echo "❌ Source directory not found: $1"
exit 1
fi
if [[ -z ${OUTDIR} ]]; then if [[ -z ${OUTDIR} ]]; then
OUTDIR="$(pwd)/output" OUTDIR="$(pwd)/output"
fi fi