From 00a1f86bba702416b0cf25b9a22e01918e26c37e Mon Sep 17 00:00:00 2001 From: xarkes Date: Sat, 17 Mar 2018 00:41:43 +0100 Subject: [PATCH] Adjust build.sh error message --- build.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index e64d63c6..ca47e20a 100755 --- a/build.sh +++ b/build.sh @@ -4,6 +4,7 @@ #### Constants #### BUILDR2=1 +ERR=0 #### User variables #### BUILD="build" @@ -50,9 +51,14 @@ fi mkdir "$BUILD" cd "$BUILD" || exit 1 qmake "$QMAKE_CONF" ../src/Cutter.pro -make +make -j4 +ERR=$((ERR+$?)) cd .. # Done -echo "Build complete. Binary available at: $BUILD/Cutter" +if [ ${ERR} -gt 0 ]; then + echo "Something went wrong!" +else + echo "Build complete. Binary available at: $BUILD/Cutter" +fi