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 6, 2023
1 parent 0d84492 commit ebdbfc4
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 @@ -19,7 +19,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 ebdbfc4

Please sign in to comment.