mirror of
https://github.com/mempool/mempool.git
synced 2025-01-18 05:12:35 +01:00
Modify upgrade script to append repo before tag name
This commit is contained in:
parent
c0d2430a84
commit
827c5d12a3
@ -14,21 +14,21 @@ source "$NVM_DIR/nvm.sh"
|
|||||||
REPO=origin
|
REPO=origin
|
||||||
BRANCH=master
|
BRANCH=master
|
||||||
|
|
||||||
TAG="${REPO}/${BRANCH}"
|
TAG="${BRANCH}"
|
||||||
[ ! -z "$1" ] && TAG=$1
|
[ ! -z "$1" ] && TAG=$1
|
||||||
|
|
||||||
echo "upgrading mempool to ${TAG}" | wall
|
echo "upgrading mempool to ${TAG}" | wall
|
||||||
|
|
||||||
cd "$HOME/mempool"
|
cd "$HOME/mempool"
|
||||||
git fetch "${REPO}"
|
git fetch "${REPO}"
|
||||||
git reset --hard "${TAG}"
|
git reset --hard "${REPO}/${TAG}"
|
||||||
cd "$HOME/"
|
cd "$HOME/"
|
||||||
|
|
||||||
for site in mainnet liquid testnet bisq
|
for site in mainnet liquid testnet bisq
|
||||||
do
|
do
|
||||||
cd "$HOME/${site}"
|
cd "$HOME/${site}"
|
||||||
git fetch "${REPO}"
|
git fetch "${REPO}"
|
||||||
git reset --hard "${TAG}"
|
git reset --hard "${REPO}/${TAG}"
|
||||||
hash=$(git rev-parse HEAD)
|
hash=$(git rev-parse HEAD)
|
||||||
|
|
||||||
if [ "${site}" = "mainnet" ]
|
if [ "${site}" = "mainnet" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user