summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2018-04-24 12:57:15 -0400
committerLuke Shumaker <lukeshu@parabola.nu>2018-04-24 18:27:07 -0400
commit1e733accbe9a2907a198185a1ca16db82eb19946 (patch)
treedcbfacf4872d1feffb7fbf8c0d9ad10dc5fefa8c
parent7d53aee4c72d5170fa1c11eafe4c9ce88b429440 (diff)
db-import-pkg: Tidy "usage:" text
-rwxr-xr-xdb-import-pkg6
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"