Merge pull request #4741 from maljes/master
Modified branch switch in generate_config.sh
This commit is contained in:
		@@ -141,15 +141,22 @@ echo "Available Branches:"
 | 
			
		||||
echo "- master branch (stable updates) | default, recommended [1]"
 | 
			
		||||
echo "- nightly branch (unstable updates, testing) | not-production ready [2]"
 | 
			
		||||
sleep 1
 | 
			
		||||
read -r -p  "Choose the Branch with it´s number [1/2] " branch
 | 
			
		||||
 | 
			
		||||
while [ -z "${MAILCOW_BRANCH}" ]; do
 | 
			
		||||
  read -r -p  "Choose the Branch with it´s number [1/2] " branch
 | 
			
		||||
  case $branch in
 | 
			
		||||
    [2])
 | 
			
		||||
      git_branch="nightly"
 | 
			
		||||
      MAILCOW_BRANCH="nightly"
 | 
			
		||||
      ;;
 | 
			
		||||
    *)
 | 
			
		||||
      git_branch="master"
 | 
			
		||||
      MAILCOW_BRANCH="master"
 | 
			
		||||
    ;;
 | 
			
		||||
  esac
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
if [ ! -z "${MAILCOW_BRANCH}" ]; then
 | 
			
		||||
  git_branch=${MAILCOW_BRANCH}
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
git fetch --all
 | 
			
		||||
git checkout -f $git_branch
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user