Files
tendermint/scripts/glide/parse.sh
2016-12-09 01:28:08 -05:00

12 lines
199 B
Bash

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