Commit 916eae5c authored by Liam Morland's avatar Liam Morland
Browse files

ISTWCMS-5029: Exit with non-zero status on error in build_gesso.sh

parent c1fd1687
......@@ -26,6 +26,10 @@ if [[ -d gesso ]]; then
fi
git clone --branch $gesso_version https://git.uwaterloo.ca/drupal-org/gesso.git
if [ "$?" != 0 ]; then
echo "Error: git clone failed"
exit 2;
fi
if [[ $build_option == 1 || $build_option == 3 ]]; then
......@@ -54,6 +58,10 @@ if [[ $build_option == 1 || $build_option == 3 ]]; then
echo "Running npm install ..."
cd gesso
npm install
if [ "$?" != 0 ]; then
echo "Error: npm install failed"
exit 2;
fi
echo "Done npm install."
echo "**************************************************************************************"
echo ""
......@@ -85,6 +93,10 @@ if [[ $build_option == 1 || $build_option == 3 ]]; then
echo "**************************************************************************************"
echo "Running gulp build ..."
gulp build
if [ "$?" != 0 ]; then
echo "Error: gulp build failed"
exit 2;
fi
cd ..
echo "Done running gulp build."
echo "**************************************************************************************"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment