From d27f342989dd050d1bff28c5a793f12095b9d5f8 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sat, 22 Aug 2015 00:47:01 +0200 Subject: [PATCH] Return to current branch after build --- makerelease | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/makerelease b/makerelease index fc97587..c2e8907 100644 --- a/makerelease +++ b/makerelease @@ -104,3 +104,7 @@ echo "?>" >> $pubfile scp $pubfile matmoul@web.sourceforge.net:/home/project-web/$prjname/htdocs/$prjname/index.php rm -R .build + +if [ ! "$branch" = "master" ]; then + git checkout $branch +fi