diff options
author | crupest <crupest@outlook.com> | 2023-10-07 16:38:56 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-10-07 16:38:56 +0800 |
commit | d080481d8d2c358c553eddcb10786131b59bc9b6 (patch) | |
tree | bc36630a9c3bffcaf37e9397b02a2f17a0a5802e /scripts/emscripten-run.sh | |
parent | a1dbbdf5fc04ac091be91add80aafe09d48cfea9 (diff) | |
download | cru-d080481d8d2c358c553eddcb10786131b59bc9b6.tar.gz cru-d080481d8d2c358c553eddcb10786131b59bc9b6.tar.bz2 cru-d080481d8d2c358c553eddcb10786131b59bc9b6.zip |
...
Diffstat (limited to 'scripts/emscripten-run.sh')
-rwxr-xr-x | scripts/emscripten-run.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/emscripten-run.sh b/scripts/emscripten-run.sh new file mode 100755 index 00000000..94a9dfee --- /dev/null +++ b/scripts/emscripten-run.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env sh + +if [[ $1 == *.js ]]; then + exec node -- "$@" +fi + +exec "$@" |