diff options
Diffstat (limited to 'src')
-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 } |