Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
kallusti (kallisti@refusal.llc)'s status on Monday, 09-Jan-2023 08:12:47 JSTkallusti @alex subshells spawn their own process.
echo "EXTRA_DESCRIPTION=$(npx ts-node ./scripts/changelog.ts $CI_COMMIT_TAG || kill -9 $$)" >> variables.env
if the command inside fails, it runs the command kill -9 to the parent PID. $() spawns a subshell, so $$ is that shell process. kill -9 instant kills the process