diff --git a/scripts/test-install.sh b/scripts/test-install.sh index 9da5bbb0ade88..c7d14e4f40a28 100755 --- a/scripts/test-install.sh +++ b/scripts/test-install.sh @@ -130,8 +130,8 @@ node --input-type="module" --eval="import 'puppeteer-core/lib/esm/puppeteer/revi echo "Testing... Puppeteer Core launch with executablePath" TMPDIR="$(mktemp -d)" -cd $TMPDIR -echo '{"type":"module"}' >>$TMPDIR/package.json +cd "$TMPDIR" +echo '{"type":"module"}' >> "$TMPDIR/package.json" npm install --loglevel silent "${tarball}" # The test tries to launch the node process because # real browsers are not downloaded by puppeteer-core.