summaryrefslogtreecommitdiff
path: root/makefile/scripts/git_update.sh
blob: 20ca7822d5c847a862ce219bc2f4b084e7367422 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash
GIT_BRANCH=`git branch | grep "*" | cut -b 3-`
if [ x$GIT_BRANCH != "x(no branch)" ]
then
	git pull origin $GIT_BRANCH
else
	echo "No branch set: Have you checked out a branch?"
fi