yuan_file="/home/coservice.war"
if [ ! -f "$yuan_file" ]
then
echo "【文件检测fail】$yuan_file不存在,$0退出执行"
exit 1
else
echo "【文件检测ok】$yuan_file存在,$0继续执行"
fi