Added mvn failure check (#6107)

This commit is contained in:
yatinappsmith 2021-07-26 05:37:10 +05:30 committed by GitHub
parent 102e36ce95
commit 7573bbe661
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,14 @@ rm -rf dist/
# Build the code. $@ accepts all the parameters from the input command line and uses it in the maven build command
mvn clean package "$@"
if [ $? -eq 0 ]
then
echo "mvn Successfull"
else
echo "mvn Failed"
exit 1
fi
# Create the dist directory
mkdir -p dist/plugins