Skip to content
This repository was archived by the owner on May 9, 2026. It is now read-only.

Use shell conditionals instead of && shortcuts#14

Open
djmitche wants to merge 1 commit into
maxlath:mainfrom
djmitche:exit-status
Open

Use shell conditionals instead of && shortcuts#14
djmitche wants to merge 1 commit into
maxlath:mainfrom
djmitche:exit-status

Conversation

@djmitche

@djmitche djmitche commented Dec 1, 2025

Copy link
Copy Markdown
Contributor

Because this script runs with set -e, the someboolean && some action approach causes the shell to exit, as that statement evaluates to false when someboolean is false.

Sorry, this was a rookie error. I couldn't figure out how to run this locally in the repo to test it! I've now found npm exec and tested it with that command.

Because this script runs with `set -e`, the `someboolean && some action`
approach causes the shell to exit, as that statement evaluates to false
when `someboolean` is false.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant