From 49e60b03d933ffef8592e38ab8bd3f3a0f253cdb Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 15 Dec 2020 15:19:15 +0300 Subject: [PATCH] Fix targets with absolute paths workability --- main.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index e066f44..ed87a54 100644 --- a/main.go +++ b/main.go @@ -187,10 +187,12 @@ func main() { } statusInit() - tgts := flag.Args() - if len(tgts) == 0 { - tgts = []string{"all"} + for i, tgt := range tgts { + if path.IsAbs(tgt) { + tgts[i] = cwdMustRel(tgt) + } } + ok := true err = nil cmdName := path.Base(os.Args[0]) -- 2.44.0