navidrome/bin/fmt.sh
Deluan 7225807bad Initial work on downsampling
The http connection is being closed before sending all data. May have something to do with the Range header
2016-03-04 13:33:09 -05:00

11 lines
226 B
Bash
Executable File

#!/usr/bin/env bash
gofiles=$(git diff --name-only --diff-filter=ACM | grep '.go$')
[ -z "$gofiles" ] && exit 0
unformatted=$(gofmt -l $gofiles)
[ -z "$unformatted" ] && exit 0
for f in $unformatted; do
go fmt "$f"
done