标签:shell
yuan_file="/home/coservice.war"
if [ ! -f "$yuan_file" ]
then
echo "【文件检测fail】$yuan_file不存在,$0退出执行"
exit 1
else
echo "【文件检测ok】$yuan_file存在,$0继续执行"
fi
本文出自 “砖家博客” 博客,请务必保留此出处http://wsxxsl.blog.51cto.com/9085838/1953590
标签:shell
原文地址:http://wsxxsl.blog.51cto.com/9085838/1953590