From 5e90f0a57bf21393a12ffc05e022760a71098d92 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 1 Aug 2015 21:48:35 +0900 Subject: [PATCH] Fix default command so that it doesn't fail on dash-prefixed files Close #310 --- src/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constants.go b/src/constants.go index cc63af3..a238295 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