Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Set exit code for script not found #733

Open
jhudsoncedaron opened this issue Jun 22, 2023 · 0 comments
Open

Feature Request: Set exit code for script not found #733

jhudsoncedaron opened this issue Jun 22, 2023 · 0 comments

Comments

@jhudsoncedaron
Copy link

The exit code for script not found is currently 1, which is a most unfortunate choice for us.

We are using dotnet-script to provide git merge drivers. It looks like the defect in git merge driver invocation to detect absolute failure is getting fixed. However, this still leaves the misconfiguration landmine lying around.

Proposed solution: dotnet script -E 131 scripts/gitmergedriver.csx

Where -E sets the exit code if the script can't start; (usually file not found).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant