don't add files in cwd if workdir is specified
this might be a bad and ugly way of doing it but w/e
This commit is contained in:
parent
ea12273da7
commit
d2abc90638
2
main.go
2
main.go
|
@ -202,7 +202,7 @@ var (
|
||||||
var selectall bool
|
var selectall bool
|
||||||
for _, arg := range ctx.Args().Slice() {
|
for _, arg := range ctx.Args().Slice() {
|
||||||
file, e := files.NewDisk(arg)
|
file, e := files.NewDisk(arg)
|
||||||
if e != nil {
|
if e != nil || workdir != "" {
|
||||||
log.Debugf("%s wasn't really a file", arg)
|
log.Debugf("%s wasn't really a file", arg)
|
||||||
f.AddFileName(arg)
|
f.AddFileName(arg)
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue