grep "prod"/home/admin/gitrep/otp/otp-webapp-api/src/main/webapp/WEB-INF/web.xml > /dev/null
if[ $? -eq 0 ]; then
echo"Found!"elseecho"Not found!"
fi
修改后的
if[ `grep -c "prod"/home/admin/gitrep/otp/otp-webapp-api/src/main/webapp/WEB-INF/web.xml` -eq'0']; then
echo"Found!"elseecho"web.xml Spring Profiles Default config error!"
fi
echo"..................."if[ `grep -c "dev"/home/admin/gitrep/otp/otp-webapp-api/src/main/webapp/WEB-INF/web.xml` -eq'0']; then
echo"Found!"elseecho"web.xml Spring Profiles Default config error!"
fi