Skip to content

Fix exit code check in WSL environments#66

Merged
jcreamer898 merged 4 commits intomicrosoft:mainfrom
lexesj:main
Apr 1, 2025
Merged

Fix exit code check in WSL environments#66
jcreamer898 merged 4 commits intomicrosoft:mainfrom
lexesj:main

Conversation

@lexesj
Copy link
Copy Markdown
Contributor

@lexesj lexesj commented Apr 1, 2025

When using this CLI tool to authenticate against the Azure DevOps NPM Artifacts feed in WSL environments, we throw an error even when the token was successfully obtained. We check if the status code is 0 and if so, we throw an error. We should actually be checking if the status code is not 0 as 0 indicates a successful execution of the process.

  • Fix if statement condition in WSL environments.
  • Add changefiles.
  • Add unit tests.

@lexesj
Copy link
Copy Markdown
Contributor Author

lexesj commented Apr 1, 2025

@microsoft-github-policy-service agree company="Microsoft"

@jcreamer898 jcreamer898 merged commit 17796d0 into microsoft:main Apr 1, 2025
13 checks passed
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

Successfully merging this pull request may close these issues.

2 participants