fmt: run shfmt on shell scripts

This commit is contained in:
Aaron Bieber 2022-10-10 06:49:27 -06:00
parent 6aa7c23952
commit 7b3c6079a6
No known key found for this signature in database
3 changed files with 3 additions and 1 deletions

View File

@ -54,7 +54,7 @@ error() {
} }
start() { start() {
agentHasKey "$(cat /run/secrets/manager_pubkey | awk '{print $2}')" || \ agentHasKey "$(cat /run/secrets/manager_pubkey | awk '{print $2}')" ||
ssh-add /run/secrets/manager_key ssh-add /run/secrets/manager_key
} }

View File

@ -87,6 +87,7 @@
go go
jq jq
nix-diff nix-diff
shfmt
sops sops
ssh-to-age ssh-to-age
ssh-to-pgp ssh-to-pgp

1
fmt
View File

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
find . -name \*.nix -exec nix fmt {} \+ find . -name \*.nix -exec nix fmt {} \+
find . -name \*.sh -exec shfmt -w {} \+
statix check . statix check .