diff --git a/matter-iso/main.sh b/matter-iso/main.sh index 7aa654a..b591ba5 100755 --- a/matter-iso/main.sh +++ b/matter-iso/main.sh @@ -65,7 +65,7 @@ check_iso_vars() { return 1 elif [ ! -n "$VERSION" ]; then return 1 - elif ! type build &>/dev/null; then + elif ! type BUILD &>/dev/null; then return 1 fi @@ -191,7 +191,7 @@ if [ ! -z "${PKGS1}" ]; then fi info "Running build script" -echo "source /iso.sh && build" > "${tmpdir}/stager.sh" +echo "source /iso.sh && BUILD" > "${tmpdir}/stager.sh" matter-chroot "${tmpdir}" chmod +x /stager.sh matter-chroot "${tmpdir}" /stager.sh check_ret "Build script failed"