From 7191d746a12bdfe9a2b657229aed97b93611404d Mon Sep 17 00:00:00 2001 From: emmett1 Date: Wed, 8 Jan 2020 18:03:46 +0800 Subject: [PATCH] fix --- pkgquery | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgquery b/pkgquery index f5151e3..8e32e89 100755 --- a/pkgquery +++ b/pkgquery @@ -316,6 +316,7 @@ EOF print_runhelp_msg() { echo "Run '$(basename $0) help' to see available options." + exit 2 } BUILD_SCRIPT="spkgbuild" @@ -332,7 +333,6 @@ opts=$1 if [ -z "$opts" ]; then print_runhelp_msg - exit 2 fi shift @@ -341,7 +341,6 @@ if [ $(type -t pkg_$opts) ]; then pkg_$opts "$@" else print_runhelp_msg - exit 2 fi exit $?