tendermint/scripts/glide/parse.sh

13 lines
212 B
Bash

#! /bin/bash
set -euo pipefail
LIB=$1
set +u
if [[ "$GLIDE" == "" ]]; then
GLIDE=$GOPATH/src/github.com/tendermint/tendermint/glide.lock
fi
set -u
cat $GLIDE | grep -A1 $LIB | grep -v $LIB | awk '{print $2}'