mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-11 17:55:50 +00:00
Allow tools/build-auto-update.sh to work on non-master branch (with warning)
This commit is contained in:
parent
6eea7c2aa1
commit
ca0deb2bf6
@ -18,7 +18,8 @@ branch_name=${branch_name##refs/heads/}
|
||||
echo "Current git branch: ${branch_name}"
|
||||
if [ "${branch_name}" != "master" ]; then
|
||||
echo "Unexpected current branch '${branch_name}' - expecting 'master'"
|
||||
exit 1
|
||||
echo "CTRL-C within 5 seconds to abort"
|
||||
sleep 5
|
||||
fi
|
||||
|
||||
# Extract short-form commit hash
|
||||
@ -77,5 +78,5 @@ git add ${project}.update
|
||||
git commit --message "XORed, auto-update JAR based on commit ${short_hash}"
|
||||
git push --set-upstream origin --force-with-lease ${update_branch}
|
||||
|
||||
echo "Changing back to 'master' branch"
|
||||
git checkout --force master
|
||||
echo "Changing back to '${branch_name}' branch"
|
||||
git checkout --force ${branch_name}
|
||||
|
Loading…
x
Reference in New Issue
Block a user