Adjust build.sh error message

This commit is contained in:
xarkes 2018-03-17 00:41:43 +01:00
parent c4e8a1c178
commit 00a1f86bba

View File

@ -4,6 +4,7 @@
#### Constants #### #### Constants ####
BUILDR2=1 BUILDR2=1
ERR=0
#### User variables #### #### User variables ####
BUILD="build" BUILD="build"
@ -50,9 +51,14 @@ fi
mkdir "$BUILD" mkdir "$BUILD"
cd "$BUILD" || exit 1 cd "$BUILD" || exit 1
qmake "$QMAKE_CONF" ../src/Cutter.pro qmake "$QMAKE_CONF" ../src/Cutter.pro
make make -j4
ERR=$((ERR+$?))
cd .. cd ..
# Done # 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