更新时间:2023-12-05 14:26:34
result_ code = MVN部署
不是为了返回状态的方式。
result_code=mvn deploy
is not the way to get return status
您可以尝试例如
#!/bin/bash
mvn deploy
STATUS=$?
if [ $STATUS -eq 0 ]; then
echo "Deployment Successful"
else
echo "Deployment Failed"
fi