Modify upgrade script to append repo before tag name

This commit is contained in:
wiz 2020-11-23 09:46:14 +09:00
parent c0d2430a84
commit 827c5d12a3
No known key found for this signature in database
GPG Key ID: A394E332255A6173

View File

@ -14,21 +14,21 @@ source "$NVM_DIR/nvm.sh"
REPO=origin
BRANCH=master
TAG="${REPO}/${BRANCH}"
TAG="${BRANCH}"
[ ! -z "$1" ] && TAG=$1
echo "upgrading mempool to ${TAG}" | wall
cd "$HOME/mempool"
git fetch "${REPO}"
git reset --hard "${TAG}"
git reset --hard "${REPO}/${TAG}"
cd "$HOME/"
for site in mainnet liquid testnet bisq
do
cd "$HOME/${site}"
git fetch "${REPO}"
git reset --hard "${TAG}"
git reset --hard "${REPO}/${TAG}"
hash=$(git rev-parse HEAD)
if [ "${site}" = "mainnet" ]