1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-13 19:28:59 +00:00

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
}