From 4b6456ef9e1c9f9c043e6d1a0acedcc458c247c1 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 31 Jul 2014 01:22:55 -0400 Subject: [PATCH] launcher: only try to self-update if we're on master branch --- launcher | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/launcher b/launcher index f03d06d..bfd7992 100755 --- a/launcher +++ b/launcher @@ -432,8 +432,10 @@ case "$command" in ;; rebuild) - echo "Updating discourse docker" - git pull || (echo 'failed to update' && exit 1) + if [ "$(git symbolic-ref --short HEAD)" == "master" ]; then + echo "Updating discourse docker" + git pull || (echo 'failed to update' && exit 1) + fi if [ -e $cidfile ] then echo "Stopping old container" -- 2.25.1