fix tag release when empty

This commit is contained in:
pvincent
2019-08-24 16:15:30 +04:00
parent 41fb3cff02
commit ac20054bbf
+1 -1
View File
@@ -109,7 +109,7 @@ __prompt_command() {
if [[ $ahead -ne 0 ]]; then
PS1+="${Blu}↑${ahead}"
else
tag_release=`git describe --exact-match --tags $(git log -n1 --pretty='%h')`
tag_release=`git describe --exact-match --tags $(git log -n1 --pretty='%h') 2> /dev/null`
if [[ -z $tag_release ]];then
PS1+="${Red}✔"
else