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

SC2004 not detected #2649

Open
superbonaci opened this issue Dec 29, 2022 · 1 comment
Open

SC2004 not detected #2649

superbonaci opened this issue Dec 29, 2022 · 1 comment

Comments

@superbonaci
Copy link

shellcheck 0.9.0
SC2004 not detected in line 7

#!/bin/bash
SOMETEXT=""
NUMBER="0"
if [ "$SOMETEXT" = "" ] && [ "$NUMBER" -eq 0 ]; then echo "match"; else echo "no match"; fi

MONEY="2"
if [ "$MONEY" -eq $(("$NUMBER" + 2)) ]; then echo "match"; else echo "no match"; fi
@brother
Copy link
Collaborator

brother commented Jan 12, 2023

because of the quote marks indeed.

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

2 participants