avoid script to continue if one step fails

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@640470 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Herve Boutemy 2008-03-24 17:18:25 +00:00
parent e7087db955
commit 17835aec90
1 changed files with 2 additions and 3 deletions

View File

@ -6,9 +6,8 @@ echo "Using $LOCAL_REPO ..."
mv "${LOCAL_REPO}" "${LOCAL_REPO}.its" mv "${LOCAL_REPO}" "${LOCAL_REPO}.its"
mvn -N install mvn -N install \
&& (
(
cd core-integration-testing-plugins cd core-integration-testing-plugins
mvn install mvn install
ret=$?; if [ $ret != 0 ]; then echo "Failed to install IT plugins" && exit $ret; fi ret=$?; if [ $ret != 0 ]; then echo "Failed to install IT plugins" && exit $ret; fi