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