mirror of
https://github.com/seanwhe/xmrig-bash-scripts.git
synced 2024-11-30 21:25:19 +03:00
condition check current xmrig src branch
This commit is contained in:
parent
2f832d62a0
commit
f8f9e66a09
17
build.sh
17
build.sh
@ -11,11 +11,20 @@ if [ -d "$_XMRIG_CLONE_LOCATION" ]; then
|
||||
# Change to clone directory
|
||||
cd $_XMRIG_CLONE
|
||||
|
||||
# Pull changes from source
|
||||
git pull
|
||||
if [ git branch | grep -m1 "* $_XMRIG_BRANCH" ]; then
|
||||
# Pull changes from source
|
||||
git pull
|
||||
|
||||
# Call function
|
||||
build_xmrig
|
||||
# Call function
|
||||
build_xmrig
|
||||
else
|
||||
# Checkout required branch
|
||||
git checkout $_XMRIG_BRANCH
|
||||
|
||||
# Call function
|
||||
build_xmrig
|
||||
|
||||
fi
|
||||
|
||||
else
|
||||
# Clone the source
|
||||
|
Loading…
Reference in New Issue
Block a user