From 6695853eff6b31c57cf3c5c631f4355d2d3b2b8f Mon Sep 17 00:00:00 2001 From: "zhangkun9038@dingtalk.com" Date: Mon, 31 Oct 2022 08:02:42 +0000 Subject: [PATCH] mkdir -p --- checkService.sh | 2 +- frontEndUpgrade.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/checkService.sh b/checkService.sh index dff0ed5..7b27e10 100755 --- a/checkService.sh +++ b/checkService.sh @@ -43,7 +43,7 @@ function compare(){ echo "current path: $(pwd)" if [ ! -f "$fileName" ];then echo "checkService 文件 $fileName 不存在1!" - return -1 + return 1 fi oriSum=$(md5sum $fileName) diff --git a/frontEndUpgrade.sh b/frontEndUpgrade.sh index ec16dfd..5d38b20 100755 --- a/frontEndUpgrade.sh +++ b/frontEndUpgrade.sh @@ -28,7 +28,7 @@ function uploadLog() count=$3 echo "current user is ${USER}" journalctl -n $count -xe -${ctype} $identify > ${workPath}/${identify}.log - ${workPath}/ossutil cp -f ${workPath}/${identify}.log oss://${ossLogPath}/logs/${identify}.log + ~/ossutil cp -f ${workPath}/${identify}.log oss://${ossLogPath}/logs/${identify}.log if [ $? -eq 0 ]; then echo "ok: log ${identify} uploaded to oss!" return 0