Prepare pleroma_ctl for moving master to stable and relax the error
message
This commit is contained in:
		
							parent
							
								
									0e9243e8a2
								
							
						
					
					
						commit
						58fea88564
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -35,11 +35,11 @@ detect_branch() {
 | 
			
		|||
	if [ "$branch" = "develop" ]; then
 | 
			
		||||
		echo "develop"
 | 
			
		||||
	elif [ "$branch" = "" ]; then
 | 
			
		||||
		echo "master"
 | 
			
		||||
		echo "stable"
 | 
			
		||||
	else
 | 
			
		||||
		# Note: branch name in version is of SemVer format and may only contain [0-9a-zA-Z-] symbols —
 | 
			
		||||
		#   if supporting releases for more branches, need to ensure they contain only these symbols.
 | 
			
		||||
		echo "Releases are built only for master and develop branches" >&2
 | 
			
		||||
		echo "Can't detect the branch automatically, please specify it by using the --branch option." >&2
 | 
			
		||||
		exit 1
 | 
			
		||||
	fi
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue