Skip to content

Commit

Permalink
better error handling for build script
Browse files Browse the repository at this point in the history
  • Loading branch information
lsellens committed Nov 23, 2016
1 parent 64f2c05 commit 613874d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions create_addon
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ rm -f build/$PKG_NAME/*/.gitignore

for i in $PKG_DEPENDS;do
mkpkg/mkpkg_$i
if [ "$?" = "1" ]; then
if [ "$?" -ne "0" ]; then
echo "Error building $1";exit 1
fi
done

mkdir -p target/$PKG_VERSION.$PKG_REV/
cd build
zip -rq9 ../target/$PKG_VERSION.$PKG_REV/$PKG_NAME-$PKG_VERSION.$PKG_REV.zip $PKG_NAME
zip -rq9y ../target/$PKG_VERSION.$PKG_REV/$PKG_NAME-$PKG_VERSION.$PKG_REV.zip $PKG_NAME
if [ "$?" = "0" ]; then
echo "$PKG_NAME/target/$PKG_NAME-$PKG_VERSION.$PKG_REV.zip"
fi
Expand Down

0 comments on commit 613874d

Please sign in to comment.