From ebdbfc42cdff82da36000cd88e66bab695eaa1b9 Mon Sep 17 00:00:00 2001 From: b4b4r07 Date: Thu, 6 Apr 2023 00:50:28 +0900 Subject: [PATCH] Make checking of system status code more robust --- functions/enhancd/lib/help.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/enhancd/lib/help.awk b/functions/enhancd/lib/help.awk index 82d7d05..e8776dd 100644 --- a/functions/enhancd/lib/help.awk +++ b/functions/enhancd/lib/help.awk @@ -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++;