build_p2pd.sh: allow setting LIBP2P_COMMIT from the command line

This commit is contained in:
Ștefan Talpalaru 2019-08-26 16:38:31 +02:00
parent e359e17445
commit cc71f15243
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,8 @@
set -e
CACHE_DIR="$1" # optional parameter pointing to a CI cache dir.
LIBP2P_COMMIT="v0.2.1" # tags work too
LIBP2P_COMMIT="v0.2.1" # tags work too, only used in nim-libp2p CI for now
[[ -n "$2" ]] && LIBP2P_COMMIT="$2" # allow overriding it on the command line
SUBREPO_DIR="vendor/go/src/github.com/libp2p/go-libp2p-daemon"
if [[ ! -e "$SUBREPO_DIR" ]]; then
# we're probably in nim-libp2p's CI