Skip to content

Commit

Permalink
Make checking of system status code more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
babarot committed Apr 5, 2023
1 parent 00da9eb commit 2c62658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/enhancd/lib/help.awk
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ BEGIN {
command = sprintf("%s &>/dev/null", condition);
code = system(command)
close(command);
if (code == 1) { next }
if (code != 0) { next }
}

len++;
Expand Down

0 comments on commit 2c62658

Please sign in to comment.