Skip to content

Commit

Permalink
defend against file path spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Pennebaker committed Jan 7, 2024
1 parent 379b7a3 commit 353152d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://github.com/mcandre/dotfiles

# REQUIREMENTS

* POSIX compatible [findutils](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.html)
* GNU or BSD [findutils](https://en.wikipedia.org/wiki/Find_(Unix))html)
* POSIX compatible [grep](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html)
* POSIX compatible [sh](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/sh.html)
* [ShellCheck](https://www.shellcheck.net/) 0.8.0+
Expand Down
20 changes: 8 additions & 12 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ lint() {
}

bashate() {
stank -exInterp zsh . |
grep -v .sample |
xargs -n 1 bashate -i E006
stank -print0 -exInterp zsh . |
xargs -0 -n 1 bashate -i E006
}

funk() {
Expand All @@ -32,21 +31,18 @@ safety() {
}

shellcheck() {
stank -exInterp zsh . |
grep -v .sample |
xargs -n 1 shellcheck
stank -print0 -exInterp zsh . |
xargs -0 -n 1 shellcheck
}

shfmt() {
stank -exInterp zsh . |
grep -v .sample |
xargs -n 1 shfmt -w -i 4
stank -print0 -exInterp zsh . |
xargs -0 -n 1 shfmt -w -i 4
}

slick() {
stank -sh . |
grep -v .sample |
xargs -n 1 slick
stank -print0 -sh . |
xargs -0 -n 1 slick
}

yamllint() {
Expand Down
2 changes: 1 addition & 1 deletion install
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ unset IFS
set -euf

go install github.com/mcandre/slick/cmd/[email protected]
go install github.com/mcandre/stank/[email protected].24
go install github.com/mcandre/stank/[email protected].26
go install mvdan.cc/sh/v3/cmd/[email protected]
go mod tidy

Expand Down

0 comments on commit 353152d

Please sign in to comment.