mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-07 10:45:39 +08:00
Fixed incorrect errors on [[ $1 ]]
This commit is contained in:
@@ -2,11 +2,12 @@
|
||||
# Todo: Find a way to make this not suck.
|
||||
|
||||
[[ -e test/quackCheck.hs ]] || { echo "Are you running me from the wrong directory?"; exit 1; }
|
||||
[[ $1 == -v ]] && pattern="" || pattern="FAIL"
|
||||
|
||||
find . -name '*.hs' -exec bash -c '
|
||||
grep -v "^module " "$1" > quack.tmp.hs
|
||||
./test/quackCheck.hs +names quack.tmp.hs
|
||||
' -- {} \; 2>&1 | grep -i FAIL
|
||||
' -- {} \; 2>&1 | grep -i "$pattern"
|
||||
result=$?
|
||||
rm -f quack.tmp.hs hugsin
|
||||
|
||||
|
Reference in New Issue
Block a user