DocumentServer/mr-update.sh
2017-05-12 19:05:42 +03:00

16 lines
180 B
Bash

#!/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