mirror of
https://github.com/ONLYOFFICE/DocumentServer.git
synced 2026-02-10 20:45:36 +08:00
Create mr-update.sh
This commit is contained in:
15
mr-update.sh
Normal file
15
mr-update.sh
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
BRANCHES=()
|
||||||
|
|
||||||
|
BRANCHES+=(develop)
|
||||||
|
BRANCHES+=(master)
|
||||||
|
|
||||||
|
if [ -n "$1" ]; then
|
||||||
|
BRANCHES+=($1)
|
||||||
|
fi
|
||||||
|
|
||||||
|
for i in ${BRANCHES[@]}; do
|
||||||
|
mr git checkout ${i}
|
||||||
|
mr git pull
|
||||||
|
done
|
||||||
Reference in New Issue
Block a user