Skip to content

Commit cbdc543

Browse files
committed
Replace mount directory condition only once
1 parent d3ab7b7 commit cbdc543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/php-wasm/compile/php/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2184,7 +2184,7 @@ RUN set -euxo pipefail; \
21842184
/root/replace.sh "s/if\s*\(stream\.stream_ops\.poll\)/if (stream.stream_ops?.poll)/g" /root/output/php.js; \
21852185
# Emscriptend allows only directories to be mounted, but in Playground we support mounting files, directories, and symlinks.
21862186
# For file mounting to work, we need to remove the directory check.
2187-
/root/replace-across-lines.sh 's/(\s+)if\s*\(\s*!FS\.isDir\(node\.mode\)\s*\)\s*\{\s+throw\s+new\s+FS\.ErrnoError\(54\)\s*;\s+\}(\s+)/$1$2/gs' /root/output/php.js; \
2187+
/root/replace-across-lines.sh 's/(\s+)if\s*\(\s*!FS\.isDir\(node\.mode\)\s*\)\s*\{\s+throw\s+new\s+FS\.ErrnoError\(54\)\s*;\s+\}(\s+)/$1$2/s' /root/output/php.js; \
21882188
# Make Emscripten websockets configurable
21892189
# Emscripten makes the Websocket proxy connect to a fixed URL.
21902190
# This assumes the traffic is always forwarded to the same target.

0 commit comments

Comments
 (0)