-
-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix arguments in shfmt.sh, remove hardcoded paths
- Loading branch information
1 parent
c987b4a
commit f14f5bb
Showing
1 changed file
with
6 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
#!/usr/bin/env bash | ||
set -Eeuo pipefail | ||
|
||
shfmt_args=( | ||
--indent 4 | ||
--keep-padding # keep column alignment paddings | ||
--space-redirects # redirect operators will be followed by a space | ||
--binary-next-line # binary ops like && and | may start a line | ||
--case-indent # switch cases will be indented | ||
-i=4 | ||
-kp # keep column alignment paddings | ||
-sr # redirect operators will be followed by a space | ||
-bn # binary ops like && and | may start a line | ||
-ci # switch cases will be indented | ||
) | ||
|
||
shfmt "${shfmt_args[@]}" "$@" \ | ||
helpers/helpers \ | ||
helpers/helpers.v2.1.d/* \ | ||
helpers/helpers.v2.d/* \ | ||
hooks/* | ||
shfmt "${shfmt_args[@]}" "$@" |