How to execute multi-line commands in the post_install script? #3432
-
[tool.pdm.scripts]
post_install = "pdm run playwright install-deps && pdm run playwright install" xsen@192 abc % pdm install
All packages are synced to date, nothing to do.
0:00:00 🎉 All complete! 0/0
Failed to install browser dependencies
Error: Invalid installation targets: '&&', 'pdm', 'run', 'playwright', 'install'. Expecting one of: chromium, chromium-headles
s-shell, chromium-tip-of-tree-headless-shell, chrome, chrome-beta, msedge, msedge-beta, msedge-dev, bidi-chromium, firefox, we
bkit
xsen@192 abc % how to do ? |
Beta Was this translation helpful? Give feedback.
Answered by
noirbizarre
Mar 25, 2025
Replies: 1 comment 3 replies
-
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note that shell snippet being passed to the shell interpreter, it is also possible to write:
or if you want indentation, this work too:
However, the default behavior is not to stop on error, so to have the same behavior as your
&&
you will needComposite will provide the same behavior without the need for
set -e
as it will stop on the first failing command: