Skip to content

Commit

Permalink
Suppress stdout when a command of condition is running
Browse files Browse the repository at this point in the history
  • Loading branch information
babarot committed Jan 14, 2025
1 parent 576c0e5 commit af6e76f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/enhancd/lib/help.awk
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ BEGIN {
{
condition = ltsv("condition")
if (condition != "") {
command = sprintf("%s &>/dev/null", condition);
code = system(command)
command = sprintf("{ %s; } &>/dev/null", condition);
code = system(command);
close(command);
if (code != 0) { next }
}
Expand Down

0 comments on commit af6e76f

Please sign in to comment.