File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 22
33set -e
44
5+ # Source nvm so npx is available during feature installation
6+ # (containerEnv PATH additions from the node feature don't apply to install scripts)
7+ export NVM_DIR=" ${NVM_DIR:-/ usr/ local/ share/ nvm} "
8+ [ -s " $NVM_DIR /nvm.sh" ] && \. " $NVM_DIR /nvm.sh"
9+
510# Install Playwright browsers
611# If _REMOTE_USER is set and not root, install as that user
712# Otherwise install as root (test scenarios)
813if [ -n " ${_REMOTE_USER} " ] && [ " ${_REMOTE_USER} " != " root" ] && id -u " ${_REMOTE_USER} " > /dev/null 2>&1 ; then
9- su " ${_REMOTE_USER} " -c " npx playwright install --with-deps ${BROWSERS} "
14+ su " ${_REMOTE_USER} " -c " export NVM_DIR= \" ${NVM_DIR} \" ; [ -s \"\$ NVM_DIR/nvm.sh \" ] && . \"\$ NVM_DIR/nvm.sh \" ; npx playwright install --with-deps ${BROWSERS} "
1015else
1116 npx playwright install --with-deps ${BROWSERS}
1217fi
You can’t perform that action at this time.
0 commit comments