go-xkcdreader/check-fmt

11 lines
291 B
Plaintext
Executable File

#!/usr/bin/env nix-shell
#!nix-shell ./shell.nix -i bash
#
# as per https://github.com/tweag/gomod2nix/blob/master/check-fmt
# Just because the nixpkgs-fmt error message is not super readable. Used by CI.
if ! nixpkgs-fmt --check . ; then
echo 'run `nixpkgs-fmt .` to fix it'
exit 1
fi