diff options
author | Bryan Drewery <bryan@shatow.net> | 2022-06-06 18:41:26 +0300 |
---|---|---|
committer | Bryan Drewery <bryan@shatow.net> | 2022-06-06 20:27:45 +0300 |
commit | f6dc65591f2d7a8573551e5b203268907cc0ac96 (patch) | |
tree | e037b57e619f7de341a886312e69a6fb15c9ea51 /src/share | |
parent | 703b4cff0deaf3f296b38edfc7ce59fb6771ebce (diff) |
read_packages_from_params: Change errors to use EX_USAGE
Diffstat (limited to 'src/share')
-rwxr-xr-x | src/share/poudriere/common.sh | 8 |
1 files changed, 4 insertions, 4 deletions
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 } |