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

fixed command existence check #1633

Merged
merged 3 commits into from
Aug 15, 2024
Merged

Conversation

ElenaDiachenko
Copy link
Contributor

Description

  • [REGRESSION] commandExistsSync incorrectly returns false

Related issues

Npm releases

n/a

@ElenaDiachenko ElenaDiachenko added this to the 1.0 milestone Jul 18, 2024
@ElenaDiachenko ElenaDiachenko self-assigned this Jul 18, 2024
@pauliusguzas
Copy link
Collaborator

How this can be tested?

@ElenaDiachenko ElenaDiachenko changed the base branch from release/1.0 to main July 22, 2024 09:02
@pavjacko pavjacko modified the milestones: 1.0, 1.1 Jul 23, 2024
@pauliusguzas pauliusguzas added e2e and removed e2e labels Jul 25, 2024
`command -v ${cleanedCommandName} 2>/dev/null` +
`&& ${cleanedCommandName} --version 2>/dev/null` +
` && { echo >&1 ${cleanedCommandName}; exit 0; }`
`command -v ${cleanedCommandName} 2>/dev/null` + ` && { echo >&1 ${cleanedCommandName}; exit 0; }`

Check warning

Code scanning / CodeQL

Unsafe shell command constructed from library input Medium

This string concatenation which depends on
library input
is later used in a
shell command
.
This string concatenation which depends on
library input
is later used in a
shell command
.
@Marius456 Marius456 added e2e and removed e2e labels Aug 13, 2024
@pauliusguzas pauliusguzas self-requested a review August 13, 2024 07:01
@ElenaDiachenko ElenaDiachenko merged commit bd340ff into main Aug 15, 2024
13 checks passed
@ElenaDiachenko ElenaDiachenko deleted the fix/command_existence_check branch August 15, 2024 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants