[*] 日常优化

This commit is contained in:
acgist
2023-06-14 11:59:25 +08:00
parent 1fb00625b0
commit 021b275717
4 changed files with 42 additions and 37 deletions

View File

@@ -5,7 +5,7 @@
#########################
killIndex=0
processId=$(ps -aux | grep "${project.artifactId}" | grep java | awk "{print $2}")
processId=$(ps -aux | grep "${project.artifactId}" | grep java | awk '{print $2}')
if [ ! -z "$processId" ]; then
echo "关闭应用:${project.artifactId}-${project.version} - $processId"
while [ ! -z "$processId" ]
@@ -21,7 +21,7 @@ if [ ! -z "$processId" ]; then
fi
sleep 1
killIndex=$((killIndex+1))
processId=$(ps -aux | grep "${project.artifactId}" | grep java | awk "{print $2}")
processId=$(ps -aux | grep "${project.artifactId}" | grep java | awk '{print $2}')
done
echo ""
fi