]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commit
scripts/build_utils: check retval of "command" 1887/head
authorKefu Chai <kchai@redhat.com>
Sat, 31 Jul 2021 06:11:05 +0000 (14:11 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 31 Jul 2021 06:12:53 +0000 (14:12 +0800)
commit370776b7f3599ad62f6bce07c1f0f9743324fd21
treeaf5501803e8eec02c526f07ac259d03015f40a04
parent32039c1f136f05a30cd59b1cc6ac471fb4809def
scripts/build_utils: check retval of "command"

instead of checking the output of `command`, check its retval.
this is a more idiomatic way of using this tool.

and redirect its output to /dev/null. no news is good news.

Signed-off-by: Kefu Chai <kchai@redhat.com>
scripts/build_utils.sh