Improve else condition of branch determination

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2020-04-21 16:08:32 +02:00
parent 0343171703
commit 401c029dc4
No known key found for this signature in database
GPG key ID: FB60471F0575164A

View file

@ -132,11 +132,9 @@ getLocalBranch(){
else
echo "${branch} "
fi
elif [[ "${branch}" == "${DEFAULT}" ]]; then
echo "ERROR"
return 1
else
echo "No Checked out branch"
# Branch started in "v"
echo "release "
fi
return 0
}