[fix] suppress all output when determining whether a component exists.

pull/105/head
IceCodeNew 2020-09-19 16:26:29 +08:00 committed by GitHub
parent 77646917bb
commit 28d5d9c2ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ judgment_parameters() {
install_software() {
COMPONENT="$1"
command -v "$COMPONENT" >/dev/null && return
command -v "$COMPONENT" > /dev/null 2>&1 && return
if ${PACKAGE_MANAGEMENT_INSTALL} "$COMPONENT"; then
echo "info: $COMPONENT is installed."
else