]> code.octet-stream.net Git - broadcaster/blob - buildscripts/lint.sh
Bump to v1.2.0
[broadcaster] / buildscripts / lint.sh
1 #!/bin/bash
2 set -euxo pipefail
3 cd "$(git rev-parse --show-toplevel)"
4 source buildscripts/init.sh "$1"
5
6 case $PLATFORM in
7 linux-x86_64|linux-armhf|linux-arm64)
8 cd server
9 files=$(gofmt -l .) && [ -z "$files" ]
10
11 cd ../radio
12 files=$(gofmt -l .) && [ -z "$files" ]
13 ;;
14 *)
15 echo "Skipping build on ${PLATFORM}"
16 exit 0
17 ;;
18 esac
19