From fc32d3ec1b7af7845430e4ca413cfad593b8dc23 Mon Sep 17 00:00:00 2001 From: nrbffs <38812627+nrbffs@users.noreply.github.com> Date: Sat, 12 Oct 2019 19:00:20 +0200 Subject: [PATCH] exit successful if nothing to do --- update-gluon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-gluon.sh b/update-gluon.sh index 81c6b15..5c7ccb6 100755 --- a/update-gluon.sh +++ b/update-gluon.sh @@ -21,7 +21,7 @@ git fetch upstream --tags # we already have this branch - exit if ! git rev-parse --verify "$fork_newest_minor_branch" &> /dev/null; then echo "Nothing todo, branch $fork_newest_minor_branch already exists" - exit 1 + exit 0 fi git checkout "$upstream_newest_minor" -- GitLab