Skip to content

Commit af6e76f

Browse files
committed
Suppress stdout when a command of condition is running
1 parent 576c0e5 commit af6e76f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions/enhancd/lib/help.awk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ BEGIN {
1616
{
1717
condition = ltsv("condition")
1818
if (condition != "") {
19-
command = sprintf("%s &>/dev/null", condition);
20-
code = system(command)
19+
command = sprintf("{ %s; } &>/dev/null", condition);
20+
code = system(command);
2121
close(command);
2222
if (code != 0) { next }
2323
}

0 commit comments

Comments
 (0)