mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix arguments in shfmt.sh, remove hardcoded paths
This commit is contained in:
parent
a5049a8a13
commit
94e00ccadc
1 changed files with 6 additions and 11 deletions
|
@ -1,16 +1,11 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -Eeuo pipefail
|
|
||||||
|
|
||||||
shfmt_args=(
|
shfmt_args=(
|
||||||
--indent 4
|
-i=4
|
||||||
--keep-padding # keep column alignment paddings
|
-kp # keep column alignment paddings
|
||||||
--space-redirects # redirect operators will be followed by a space
|
-sr # redirect operators will be followed by a space
|
||||||
--binary-next-line # binary ops like && and | may start a line
|
-bn # binary ops like && and | may start a line
|
||||||
--case-indent # switch cases will be indented
|
-ci # switch cases will be indented
|
||||||
)
|
)
|
||||||
|
|
||||||
shfmt "${shfmt_args[@]}" "$@" \
|
shfmt "${shfmt_args[@]}" "$@"
|
||||||
helpers/helpers \
|
|
||||||
helpers/helpers.v2.1.d/* \
|
|
||||||
helpers/helpers.v2.d/* \
|
|
||||||
hooks/*
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue