1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 14:58:08 +00:00

Add correct displaying for detached HEAD state.

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

View File

@ -127,6 +127,8 @@ getLocalBranch(){
if [[ ! "${branch}" =~ ^v ]]; then
if [[ "${branch}" == "master" ]]; then
echo ""
elif [[ "${branch}" == "HEAD" ]]; then
echo "in detached HEAD state at "
else
echo "${branch} "
fi