Skip to content

Commit

Permalink
Fixed error in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jul 28, 2016
1 parent b3e0ce4 commit 0805a9d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

PYINSTALL_TARGETS=$(find -maxdepth 2 | egrep 'aw-.*/.*\.spec')

function build_fail {
echo "Failed to build $1"
exit 1
}

echo "PyInstaller .spec files found"
for target in $PYINSTALL_TARGETS; do
echo " - $target";
Expand All @@ -18,7 +23,7 @@ for target in $PYINSTALL_TARGETS; do
echo
echo "-------------------------------------"
echo "Building $target_dir"
pyinstaller $target --onefile --clean || echo "Failed to build $target" && exit 1
pyinstaller $target --onefile --clean || build_fail
done

echo
Expand Down

0 comments on commit 0805a9d

Please sign in to comment.