mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-22 16:24:27 +01:00
Merge pull request #768 from thewtex/wasi-mount-work
web-wasi: mount /work in emulator for access to working directory
This commit is contained in:
commit
2dd9a1cb1c
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Mount the PWD to enable access in try_run commands
|
# Mount the PWD and the /work mount dir to enable access in try_run commands
|
||||||
exec ${WASMER_DIR}/bin/wasmer run --dir=. --dir=$PWD "$@"
|
exec ${WASMER_DIR}/bin/wasmer run --dir=. --dir=$PWD --dir=/work/ "$@"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Mount the PWD to enable access in try_run commands
|
# Mount the PWD and the /work mount dir to enable access in try_run commands
|
||||||
exec ${WASMTIME_HOME}/bin/wasmtime run --dir=. --dir=$PWD "$@"
|
exec ${WASMTIME_HOME}/bin/wasmtime run --dir=. --dir=$PWD --dir=/work/ "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user