From: Kefu Chai Date: Sun, 15 Mar 2020 03:36:02 +0000 (+0800) Subject: admin/build-doc: add dot to the check list X-Git-Tag: v16.0.0~20^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F33976%2Fhead;p=ceph.git admin/build-doc: add dot to the check list also print the missing list in stderr Signed-off-by: Kefu Chai --- diff --git a/admin/build-doc b/admin/build-doc index b69c0aceb12..6f4483de0c8 100755 --- a/admin/build-doc +++ b/admin/build-doc @@ -31,15 +31,15 @@ elif command -v yum >/dev/null; then exit 1 fi else - for command in virtualenv doxygen ant ditaa cython; do + for command in dot virtualenv doxygen ant ditaa cython; do if ! command -v "$command" > /dev/null; then # add a space after old values missing="${missing:+$missing }$command" fi done if [ -n "$missing" ]; then - echo "$0: missing required command, please install them:" 1>&2 - echo "$missing" + echo "$0: missing required command, please install them:" 1>&2 + echo "$missing" 1>&2 exit 1 fi fi