Fix unbound variable err then BUILD_ONLY env var not set

This commit is contained in:
sigseg5 2023-05-19 12:50:36 +04:00
parent 1c4eabd247
commit a3ff89855f
No known key found for this signature in database
GPG key ID: 11F4BF2AEB246E66

View file

@ -81,7 +81,7 @@ cd $BUILD_DIR
$QT_CMAKE -S $PROJECT_DIR -B $BUILD_DIR $QT_CMAKE -S $PROJECT_DIR -B $BUILD_DIR
cmake --build . --config release --target all cmake --build . --config release --target all
if [ "$BUILD_ONLY" = "True" ] || [ "$BUILD_ONLY" = "true" ]; then if [ "${BUILD_ONLY:-}" = "True" ] || [ "${BUILD_ONLY:-}" = "true" ]; then
echo Succesfull build $APP_NAME, path to binary: $BUNDLE_DIR echo Succesfull build $APP_NAME, path to binary: $BUNDLE_DIR
exit 0 exit 0
fi fi