From cee66e1f1174e20a3b63f1d551e2e86c59af8fcb Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Fri, 14 Apr 2017 14:55:00 -0700 Subject: [PATCH] Send unnecessary error message to /dev/null --- deploy/common.sh | 3 ++- deploy/longhorn-deploy-node.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy/common.sh b/deploy/common.sh index 1104947..b50d71b 100644 --- a/deploy/common.sh +++ b/deploy/common.sh @@ -3,7 +3,8 @@ cleanup(){ name=$1 set +e - docker rm -vf ${name} + echo clean up ${name} if exists + docker rm -vf ${name} > /dev/null 2>&1 set -e } diff --git a/deploy/longhorn-deploy-node.sh b/deploy/longhorn-deploy-node.sh index a5d92b4..c9e1c23 100755 --- a/deploy/longhorn-deploy-node.sh +++ b/deploy/longhorn-deploy-node.sh @@ -49,7 +49,7 @@ if [ "$port" != "" ]; then fi set +e -iscsiadm_check=`iscsiadm --version 2>&1` +iscsiadm_check=`iscsiadm --version > /dev/null 2>&1` if [ $? -ne 0 ]; then echo Cannot find \`iscsiadm\` on the host, please install \`open-iscsi\` package exit 1