From 0805a9d27ec0cb4625c4de5def1a1350897a0228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Thu, 28 Jul 2016 11:42:16 +0200 Subject: [PATCH] Fixed error in build script --- build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 29cc156..833620e 100755 --- a/build.sh +++ b/build.sh @@ -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"; @@ -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