浏览代码

curgitb : remove parenthesis

Jovian (Darkside) 6 年之前
父节点
当前提交
283a4b5b10
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      Useful/curgitb

+ 5 - 2
Useful/curgitb

@@ -3,5 +3,8 @@ current_branch=`git branch 2>&1`
 if [ "$current_branch" != 'fatal: not a git repository (or any of the parent directories): .git' ]
 then
 	current_branch=`echo "$current_branch" | grep \* | cut -d ' ' -f2`
-	echo "($current_branch)"
-fi
+	echo "$current_branch"
+	exit 0
+else
+	exit 1
+fi