diff --git a/scripts/pkg.in b/scripts/pkg.in index 8fc9ea8..10de078 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