From 4b189d69f23b6c3251cecfc2c4bd204531e1ef10 Mon Sep 17 00:00:00 2001 From: elig0n Date: Thu, 11 Sep 2025 17:16:52 +0300 Subject: [PATCH] Use builtin shell variable comparison instead of spawning a subshell --- scripts/pkg.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pkg.in b/scripts/pkg.in index 8fc9ea8a..10de078a 100644 --- a/scripts/pkg.in +++ b/scripts/pkg.in @@ -440,7 +440,7 @@ if [ "${1-}" = "--check-mirror" ]; then shift 1 fi -if [[ $# = 0 || $(echo "$1" | grep "^h") ]]; then +if [[ $# = 0 || "${1:0:1} == "h" ]]; then show_help fi