storj/scripts/check-travis-tidy.sh
2019-02-04 15:40:36 +02:00

13 lines
227 B
Bash
Executable File

#!/bin/bash
set -ueo pipefail
CHANGES=$(git diff --name-only $TRAVIS_COMMIT_RANGE -- go.mod go.sum)
if [ -z "$CHANGES" ]
then
echo "go modules not changed"
else
echo "go module changes detected"
gospace istidy
fi