diff options
-rw-r--r-- | subr/pkgtool_init.subr | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/subr/pkgtool_init.subr b/subr/pkgtool_init.subr index df5d19b8..4d096e12 100644 --- a/subr/pkgtool_init.subr +++ b/subr/pkgtool_init.subr @@ -61,11 +61,7 @@ pkgtoolp_init_getopts() { esac; shift $((${OPTIND}-1)); OPTIND=1; else case "${1}" in *=*) rtl_set_var_unsafe "${1%%=*}" "${1#*=}"; ;; - *) if [ -n "${PKGTOOL_PKG_NAME:-}" ]; then - _rc=1; _status="Error: more than one package name specified."; - else - PKGTOOL_PKG_NAME="${1}"; - fi; ;; + *) PKGTOOL_PKG_NAME="${1}"; ;; esac; shift; fi; done; |