浏览代码

build: remove needless output

Current build script outputs its name to stdout because of its
checking argv[0].

$ ./build
./build

The line is a little bit mysterious so this commit removes it.
Hitoshi Mitake 9 年之前
父节点
当前提交
abc1cb945b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      build

+ 1 - 1
build

@@ -41,4 +41,4 @@ etcd_build() {
 toggle_failpoints
 toggle_failpoints
 
 
 # don't build when sourced
 # don't build when sourced
-(echo "$0" | grep "/build$") && etcd_build || true
+(echo "$0" | grep "/build$" > /dev/null) && etcd_build || true