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:
Lilian Jónsdóttir 2024-07-28 19:00:19 -07:00
parent ea12273da7
commit d2abc90638

View file

@ -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