Skip to content

Commit fddac5c

Browse files
committed
Stop build in script if case of error
1 parent 52fc9f0 commit fddac5c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

PrjBarlib/make_xos.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
premake5 gmake2 --python-include-path=/opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/include/python3.13 \
22
--python-lib-path=/opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13/lib/ \
33
--python-version=3.13
4+
if [[ $? -ne 0 ]] ; then
5+
exit 1
6+
fi
7+
48
cd build
59
make config=python clean
610
make config=python Barlib
11+
if [[ $? -ne 0 ]] ; then
12+
exit 1
13+
fi
714

815
rm -rf Python/BarcodeProject
916
bash ../modules/python/make_package.sh Python python3
17+
if [[ $? -ne 0 ]] ; then
18+
exit 1
19+
fi
1020

1121
cp -r ./Python/BarcodeProject/dist ../../dist

0 commit comments

Comments
 (0)