summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-08-01 21:48:35 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-08-01 21:51:10 +0900
commit5e90f0a57bf21393a12ffc05e022760a71098d92 (patch)
treea03c00dd0118c1b7fce33e4b81c40dad448b60d1
parent0b4542fcdf52b51e026db230a0ec6c06e5eff00d (diff)
Fix default command so that it doesn't fail on dash-prefixed files
Close #310
-rw-r--r--src/constants.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/constants.go b/src/constants.go
index cc63af3d..a2382953 100644
--- a/src/constants.go
+++ b/src/constants.go
@@ -15,7 +15,7 @@ const (
coordinatorDelayStep time.Duration = 10 * time.Millisecond
// Reader
- defaultCommand = `find * -path '*/\.*' -prune -o -type f -print -o -type l -print 2> /dev/null`
+ defaultCommand = `find . -path '*/\.*' -prune -o -type f -print -o -type l -print 2> /dev/null | sed s/^..//`
// Terminal
initialDelay = 100 * time.Millisecond