storj/scripts/check-travis-tidy.sh
Michal Niewrzal 53c11dfc5d
Stop storagenode on ctrl+c (#1220)
* Stop storagenode on ctrl+c

* Cancel grpc server

* handle error

* handle error

* use errgroup

* fix check-travis-tidy

* remove pipefail
2019-02-04 15:50:55 +01:00

12 lines
237 B
Bash
Executable File

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