Skip to content

Commit 6369d1d

Browse files
author
Hiroki Konishi
committed
Update: improve command output concatenation (simply excecute command orderly)
1 parent faef6ac commit 6369d1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/out.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,18 @@ func newPmyOutFromRule(rule *pmyRule) pmyOut {
5858
// buildMainCommand builds main command that concatenate
5959
// all results of given command groups
6060
func (out *pmyOut) buildMainCommand() string {
61-
res := "cat "
61+
res := ""
6262
pmyDelimiter := os.Getenv("PMY_TAG_DELIMITER")
6363
for _, cg := range out.cmdGroups {
6464
// if there is no tag, no need to use taggo
6565
if out.allEmptyTag {
6666
res += fmt.Sprintf(
67-
"<(%v)",
67+
"%v ;",
6868
cg.Stmt,
6969
)
7070
} else {
7171
res += fmt.Sprintf(
72-
"<(%v | taggo --color '%v' --tag '%v' --delimiter '%v') ",
72+
"%v | taggo --color '%v' --tag '%v' --delimiter '%v' ;",
7373
cg.Stmt,
7474
cg.TagColor,
7575
cg.tagAligned,

0 commit comments

Comments
 (0)