diff --git a/ShellCheck/Analytics.hs b/ShellCheck/Analytics.hs index d4d3af8..ad6f508 100644 --- a/ShellCheck/Analytics.hs +++ b/ShellCheck/Analytics.hs @@ -2515,7 +2515,7 @@ checkUncheckedCd params root = when(t `isUnqualifiedCommand` "cd" && not (isCdDotDot t) && not (isCondition $ getPath (parentMap params) t)) $ - warn (getId t) 2164 "Use cd ... || exit in case cd fails." + warn (getId t) 2164 "Use 'cd ... || exit' or 'cd ... || return' in case cd fails." checkElement _ = return () isCdDotDot t = oversimplify t == ["cd", ".."] hasSetE = isNothing $ doAnalysis (guard . not . isSetE) root