Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison bin/fpkg @ 90:aefad9391470
Extra error message if not command is given
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 06 Sep 2019 22:07:38 +0200 |
| parents | 76ddab9ab965 |
| children | fffee187f1f7 |
comparison
equal
deleted
inserted
replaced
| 89:10526063a5fa | 90:aefad9391470 |
|---|---|
| 137 OPTIND=1 | 137 OPTIND=1 |
| 138 | 138 |
| 139 command="$1" | 139 command="$1" |
| 140 shift | 140 shift |
| 141 | 141 |
| 142 test -n "$command" || { echo "ERROR: no command given" >&2; exit 2; } | |
| 143 | |
| 142 case "${command}" in | 144 case "${command}" in |
| 143 audit) | 145 audit) |
| 144 command_audit "$@" | 146 command_audit "$@" |
| 145 ;; | 147 ;; |
| 146 update) | 148 update) |
