diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2018-04-24 12:57:15 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2018-04-24 18:27:07 -0400 |
commit | 1e733accbe9a2907a198185a1ca16db82eb19946 (patch) | |
tree | dcbfacf4872d1feffb7fbf8c0d9ad10dc5fefa8c | |
parent | 7d53aee4c72d5170fa1c11eafe4c9ce88b429440 (diff) |
db-import-pkg: Tidy "usage:" text
-rwxr-xr-x | db-import-pkg | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/db-import-pkg b/db-import-pkg index 1dda70d..b4bf9c9 100755 --- a/db-import-pkg +++ b/db-import-pkg @@ -224,9 +224,9 @@ main() { # Print usage message if [[ $# -ne 1 ]] || ! in_array "$UPSTREAM" "${UPSTREAMS[@]}" ; then - fatal_error 'usage: %s {%s\b}' \ - "${0##*/}" \ - "$(printf -- ' %s |' "${UPSTREAMS[@]}")" + IFS='|' + msg 'usage: [V=true] %s {%s}' "${0##*/}" "${UPSTREAMS[*]}" + exit $EXIT_INVALIDARGUMENT fi source "$(dirname "$(readlink -e "$0")")/config" |