Allow - for stdout in path mapper (#147)

This commit is contained in:
Andrew Haines
2021-03-02 05:26:10 +00:00
committed by GitHub
parent d48f4e59c3
commit 456575db97
3 changed files with 20 additions and 3 deletions
+3 -1
View File
@@ -554,7 +554,9 @@ func pathMapper(r *Registry) MapperFunc {
if err != nil {
return err
}
path = ExpandPath(path)
if path != "-" {
path = ExpandPath(path)
}
target.SetString(path)
return nil
}