From d9c46b9bf5b3e18c7c6424fb9bb7d227bdcf2c60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E7=9B=B8=E5=85=B5?= Date: Tue, 15 Aug 2023 21:47:13 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=20Modification=E3=80=91=E4=BF=AE=E6=94=B9=E5=8D=B8=E8=BD=BD?= =?UTF-8?q?=E6=97=B6=E6=97=A5=E5=BF=97=E7=9A=84=E8=BE=93=E5=87=BA=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/scripts/uninstall.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/build/scripts/uninstall.sh b/build/scripts/uninstall.sh index e36dbd6..3236677 100644 --- a/build/scripts/uninstall.sh +++ b/build/scripts/uninstall.sh @@ -36,11 +36,8 @@ if [ ! -f "${DST}" ]; then exit 0 fi -${ROOT}/ascend-docker-plugin-install-helper rm ${DST} ${SRC} ${RESERVEDEFAULT} >> ${LOG_FILE} 2>&1 -if [ "$?" != "0" ]; then - echo "[ERROR]: Ascend-Docker-Runtime" $(date +%Y%m%d-%H:%M:%S) " del damon.json failed, please check ${LOG_FILE} for detail" - exit 1 -fi +# exit when return code is not 0, if use 'set -e' +${ROOT}/ascend-docker-plugin-install-helper rm ${DST} ${SRC} ${RESERVEDEFAULT} > /dev/null mv ${SRC} ${DST} -- Gitee