From 0b26e1961274d792d80648c5da97493e4b32009f Mon Sep 17 00:00:00 2001 From: godotg Date: Wed, 23 Nov 2022 14:25:03 +0800 Subject: [PATCH] fix[shell]: deploy jar absolute path --- deploy.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deploy.sh b/deploy.sh index 1098425a..5b1d4be5 100644 --- a/deploy.sh +++ b/deploy.sh @@ -179,6 +179,10 @@ function start() { mkdir -p "${logPath}/log" cd ${logPath} + local currentPath + currentPath=$(pwd) + echo "pwd当前的运行路径:${currentPath}" + if [ ! -f "${jarPath}" ]; then echo "文件不存在:启动的jar包不存在,请检查jar的路径格式是否是绝对路径" echo "usage: sh deploy.sh start jarAbsPath logPath"