Linux people, gimme a hand. I want this to crash if the inner command crashes. Currently it writes the error out(?) to the file:
echo "EXTRA_DESCRIPTION=$(npx ts-node ./scripts/changelog.ts $CI_COMMIT_TAG)" >> variables.envIf npx ts-node ./scripts/changelog.ts $CI_COMMIT_TAG crashes, I want it to exit 1.
In the happy case, variables.env is a text file which contains EXTRA_DESCRIPTION="result of command"
This is in my CI. How?