From f6dc65591f2d7a8573551e5b203268907cc0ac96 Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Mon, 6 Jun 2022 08:41:26 -0700 Subject: read_packages_from_params: Change errors to use EX_USAGE --- src/share/poudriere/common.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/share') diff --git a/src/share/poudriere/common.sh b/src/share/poudriere/common.sh index a26e9aac..892d3acd 100755 --- a/src/share/poudriere/common.sh +++ b/src/share/poudriere/common.sh @@ -8349,18 +8349,18 @@ read_packages_from_params() { if [ $# -eq 0 -o -z "$1" ]; then [ -n "${LISTPKGS}" -o ${ALL} -eq 1 ] || - err 1 "No packages specified" + err ${EX_USAGE} "No packages specified" if [ ${ALL} -eq 0 ]; then for listpkg_name in ${LISTPKGS}; do [ -r "${listpkg_name}" ] || - err 1 "No such list of packages: ${listpkg_name}" + err ${EX_USAGE} "No such list of packages: ${listpkg_name}" done fi else [ ${ALL} -eq 0 ] || - err 1 "command line arguments and -a cannot be used at the same time" + err ${EX_USAGE} "command line arguments and -a cannot be used at the same time" [ -z "${LISTPKGS}" ] || - err 1 "command line arguments and list of ports cannot be used at the same time" + err ${EX_USAGE} "command line arguments and list of ports cannot be used at the same time" LISTPORTS="$@" fi } -- cgit v1.2.3