Skip to content

Commit fde808f

Browse files
committed
fix(build): harden Playwright headless shell check
1 parent 87212cd commit fde808f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile.rust

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ RUN --mount=type=cache,target=/home/deva/.npm,uid=${DEVA_UID},gid=${DEVA_GID},sh
139139
done && \
140140
npx playwright --version && \
141141
ls "$PLAYWRIGHT_BROWSERS_PATH" && \
142-
test -x "$(ls -d ${PLAYWRIGHT_BROWSERS_PATH}/chromium_headless_shell-*/chrome-linux/headless_shell 2>/dev/null | head -1)" && \
142+
test -n "$(find "$PLAYWRIGHT_BROWSERS_PATH" -path '*/chromium_headless_shell-*/*/headless_shell' -type f -perm /111 -print -quit)" && \
143143
npm cache clean --force
144144

145145
USER root

0 commit comments

Comments
 (0)