diff --git a/build/scripts/uninstall.sh b/build/scripts/uninstall.sh index e36dbd608209b80cc1989f2f4e58627edf5ade4e..3236677fc976047a70325861d13c384ff9f31a25 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}