Create mr-update.sh
This commit is contained in:
parent
9e8eb297a2
commit
d9941285c0
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
|
Loading…
Reference in a new issue