Create mr-update.sh

This commit is contained in:
Alexey Golubev 2017-05-12 19:05:42 +03:00 committed by GitHub
parent 9e8eb297a2
commit d9941285c0

15
mr-update.sh Normal file
View 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