xin/bin/fmt

13 lines
255 B
Bash
Executable File

#!/bin/sh
set -e
find . -name \*.nix -exec nix fmt -- -q {} \+
find . -name \*.sh -exec shfmt -w {} \+
deadnix -f .
shfmt -w bin/deploy
shfmt -w bin/mkboot
# TODO: https://github.com/nerdypepper/statix/issues/68
statix check --ignore lib/default.nix .