We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I'm trying to run a shell script to detect if you have nvm or fnm installed.
nvm
fnm
The first case passes (in both solidarity and shell) if you have fnm install or the .nvm folder exists at your home root.
.nvm
The second case fails when running solidarity but passes when ran in shell.
To replicate this issue you will need to have nvm installed. https://github.com/nvm-sh/nvm
Example .solidarity json
{ "$schema": "http://json.schemastore.org/solidaritySchema", "requirements": { "Node Manager (NVM | FNM)": [ { "rule": "shell", "command": "if [ $(command -v fnm) ] || [ -d $HOME/.nvm ]; then echo true; fi;", "match": "true", "error": "NVM or FNM binaries are not detected" }, { "rule": "shell", "command": "if [ $(command -v nvm) ]; then echo true; fi;", "match": "true", "error": "NVM not detected" } ], } }
The text was updated successfully, but these errors were encountered:
Use "cli" rule with "binary" property:
{ "rule": "cli", "binary": "nvm" },
Sorry, something went wrong.
No branches or pull requests
Hi, I'm trying to run a shell script to detect if you have
nvm
orfnm
installed.The first case passes (in both solidarity and shell) if you have fnm install or the
.nvm
folder exists at your home root.The second case fails when running solidarity but passes when ran in shell.
To replicate this issue you will need to have nvm installed. https://github.com/nvm-sh/nvm
Example .solidarity json
The text was updated successfully, but these errors were encountered: