DocumentServer/mr-update.sh

16 lines
180 B
Bash
Raw Permalink Normal View History

2017-05-12 16:05:42 +00:00
#!/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