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
This required a specific ticket for shellcheck #72 Doing some tests:
pub fun is_command(command: Text): Bool { if (unsafe $command -v "{command}" > /dev/null$) { return true } return false }
Generate this bash:
function is_command__28_v0 { local command=$1 [ -x "$(command -v ${command})" ]; __AS=$?; if [ $__AS != 0 ]; then __AF_is_command28_v0=0; return 0 fi __AF_is_command28_v0=1; return 0 }
For shellcheck it is wrong, it should be:
function is_command__28_v0 { local command=$1 [ -x $(command -v "${command}") ]; __AS=$?; if [ $__AS != 0 ]; then __AF_is_command28_v0=0; return 0 fi __AF_is_command28_v0=1; return 0 }
Basically the change:
[ -x "$(command -v ${command})" ]; //wrong [ -x $(command -v "${command}") ]; //right
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This required a specific ticket for shellcheck #72
Doing some tests:
Generate this bash:
For shellcheck it is wrong, it should be:
Basically the change:
The text was updated successfully, but these errors were encountered: