scripts: enforce genproto.sh is run from repo root

release-2.3
Jonathan Boulle 2015-11-06 16:13:24 +01:00
parent f48e95f7b0
commit de0cb472be
1 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,11 @@
#
set -e
if ! [[ "$0" =~ "scripts/genproto.sh" ]]; then
echo "must be run from repository root"
exit 255
fi
PREFIX="github.com/coreos/etcd/Godeps/_workspace/src"
DIRS="./wal/walpb ./etcdserver/etcdserverpb ./snap/snappb ./raft/raftpb ./storage/storagepb"