fix tag release when empty
This commit is contained in:
+1
-1
@@ -109,7 +109,7 @@ __prompt_command() {
|
|||||||
if [[ $ahead -ne 0 ]]; then
|
if [[ $ahead -ne 0 ]]; then
|
||||||
PS1+="${Blu}↑${ahead}"
|
PS1+="${Blu}↑${ahead}"
|
||||||
else
|
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
|
if [[ -z $tag_release ]];then
|
||||||
PS1+="${Red}✔"
|
PS1+="${Red}✔"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user