use pwd and quote it

Seems more portable and safe
This commit is contained in:
Joey Hess 2025-03-07 16:06:37 -04:00
parent 5ef1c44e07
commit 18be4910d8
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -43,5 +43,5 @@ if [ -n "$wasm" ]; then
# Use --force-interpreter to avoid wasmedge running AOT native # Use --force-interpreter to avoid wasmedge running AOT native
# instructions, which is insecure if the WASM binary comes from # instructions, which is insecure if the WASM binary comes from
# an untrusted source. # an untrusted source.
wasmedge --dir /:$PWD --force-interpreter -- "$wasm" "$@" >&2 wasmedge --dir "/:`pwd`" --force-interpreter -- "$wasm" "$@" >&2
fi fi