build_p2pd.sh: allow setting LIBP2P_COMMIT from the command line
This commit is contained in:
parent
e359e17445
commit
cc71f15243
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue