tendermint/scripts/glide/parse.sh

11 lines
198 B
Bash
Raw Normal View History

2016-07-24 11:08:47 -07:00
#! /bin/bash
set -euo pipefail
2016-08-09 22:45:55 -07:00
LIB=$1
2016-10-12 09:27:37 -07:00
if [[ "$GLIDE" == "" ]]; then
GLIDE=$GOPATH/src/github.com/tendermint/tendermint/glide.lock
fi
2016-07-24 11:08:47 -07:00
cat $GLIDE | grep -A1 $LIB | grep -v $LIB | awk '{print $2}'