Revision 79bc3f477447335e180b5ae809caa0561c706948 authored by Ben Darnell on 20 February 2015, 19:02:43 UTC, committed by Ben Darnell on 20 February 2015, 19:02:43 UTC
When the file is not found, `which` returns an empty string, which passes the -f test. `command -v` is the most portable alternative to `which` per http://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script/677212#677212
1 parent 0ea2173
File | Mode | Size |
---|---|---|
Documentation | ||
Godeps | ||
client | ||
discovery | ||
error | ||
etcdctl | ||
etcdmain | ||
etcdserver | ||
hack | ||
integration | ||
logos | ||
migrate | ||
pkg | ||
proxy | ||
raft | ||
rafthttp | ||
scripts | ||
snap | ||
store | ||
tools | ||
version | ||
wal | ||
.dockerignore | -rw-r--r-- | 5 bytes |
.gitignore | -rw-r--r-- | 107 bytes |
.godir | -rw-r--r-- | 23 bytes |
.header | -rw-r--r-- | 589 bytes |
.travis.yml | -rw-r--r-- | 195 bytes |
CONTRIBUTING.md | -rw-r--r-- | 2.1 KB |
DCO | -rw-r--r-- | 1.4 KB |
Dockerfile | -rw-r--r-- | 47 bytes |
LICENSE | -rw-r--r-- | 11.1 KB |
MAINTAINERS | -rw-r--r-- | 157 bytes |
NOTICE | -rw-r--r-- | 126 bytes |
Procfile | -rw-r--r-- | 1.3 KB |
README.md | -rw-r--r-- | 4.0 KB |
build | -rwxr-xr-x | 591 bytes |
cover | -rwxr-xr-x | 626 bytes |
main.go | -rw-r--r-- | 1.5 KB |
test | -rwxr-xr-x | 1.8 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...