chore: fix pre-existing gofmt and markdown lint issues
Markdown lint in CI now checks nested docs, which it previously skipped because the `**/*.md` glob was expanded by the shell without globstar.
This commit is contained in:
26 files changed
+124
-115
No files matched your search
@@ -154,9 +154,12 @@ func joinShellTokens(tokens []string) string {
|
||||
// quoteShellArg returns s wrapped in single quotes when it contains characters
|
||||
// the shell would otherwise interpret (whitespace, quotes, expansion sigils,
|
||||
// globs, redirections, etc.). Embedded single quotes are escaped with the
|
||||
// standard `'\''` close-escape-open sequence. Tokens free of such characters
|
||||
// are returned verbatim so the stored representation stays human-readable for
|
||||
// the common case.
|
||||
// standard close-escape-open sequence:
|
||||
//
|
||||
// '\''
|
||||
//
|
||||
// Tokens free of such characters are returned verbatim so the stored
|
||||
// representation stays human-readable for the common case.
|
||||
func quoteShellArg(s string) string {
|
||||
if s == "" {
|
||||
return "''"
|
||||
|
||||
Reference in new issue
Block a user