You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
240 B

7 years ago
7 years ago
  1. #! /bin/bash
  2. set +u
  3. if [[ "$DEP" == "" ]]; then
  4. DEP=$GOPATH/src/github.com/tendermint/tendermint/Gopkg.lock
  5. fi
  6. set -u
  7. set -euo pipefail
  8. LIB=$1
  9. grep -A100 "$LIB" "$DEP" | grep revision | head -n1 | grep -o '"[^"]\+"' | cut -d '"' -f 2