Prepare pleroma_ctl for moving master to stable and relax the error

message
This commit is contained in:
rinpatch 2019-10-14 18:39:56 +03:00
parent 3d3c166e59
commit bbe409c914

View File

@ -35,11 +35,11 @@ detect_branch() {
if [ "$branch" = "develop" ]; then if [ "$branch" = "develop" ]; then
echo "develop" echo "develop"
elif [ "$branch" = "" ]; then elif [ "$branch" = "" ]; then
echo "master" echo "stable"
else else
# Note: branch name in version is of SemVer format and may only contain [0-9a-zA-Z-] symbols — # 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. # 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 exit 1
fi fi
} }