Don't suggest [[..]] for sh in SC2081 (fixes #1562)

This commit is contained in:
Vidar Holen 2019-05-13 20:45:53 -07:00
parent 5ccaddbcc2
commit 50116e8aee
2 changed files with 17 additions and 2 deletions

View file

@ -947,5 +947,14 @@ getOpts flagTokenizer string cmd = process flags
supportsArrays shell = shell == Bash || shell == Ksh
-- Returns true if the shell is Bash or Ksh (sorry for the name, Ksh)
isBashLike :: Parameters -> Bool
isBashLike params =
case shellType params of
Bash -> True
Ksh -> True
Dash -> False
Sh -> False
return []
runTests = $( [| $(forAllProperties) (quickCheckWithResult (stdArgs { maxSuccess = 1 }) ) |])