Modify upgrade script to allow reverting to a specific git hash or tag
This commit is contained in:
parent
cbef2ae6d0
commit
eb00b92996
@ -13,14 +13,15 @@ source "$NVM_DIR/nvm.sh"
|
|||||||
|
|
||||||
REPO=origin
|
REPO=origin
|
||||||
BRANCH=master
|
BRANCH=master
|
||||||
if [ ! -z "$1" ];then
|
|
||||||
BRANCH=$1
|
TAG="${REPO}/${BRANCH}"
|
||||||
fi
|
[ ! -z "$1" ] && TAG=$1
|
||||||
echo "upgrading mempool to ${BRANCH}" | wall
|
|
||||||
|
echo "upgrading mempool to ${TAG}" | wall
|
||||||
|
|
||||||
cd "$HOME/mempool"
|
cd "$HOME/mempool"
|
||||||
git fetch "${REPO}"
|
git fetch "${REPO}"
|
||||||
git reset --hard "${REPO}/${BRANCH}"
|
git reset --hard "${TAG}"
|
||||||
cd "$HOME/"
|
cd "$HOME/"
|
||||||
|
|
||||||
for site in mainnet liquid testnet bisq
|
for site in mainnet liquid testnet bisq
|
||||||
|
Loading…
x
Reference in New Issue
Block a user