#!/usr/bin/env bash . /bedrock/share/common-code if which brl > /dev/null 2>&1; then echo "Fetching latest commits from repository..." if [ -d /bedrock/cache/bedrocklinux-userland ]; then cd /bedrock/cache/bedrocklinux-userland git pull -q else mkdir -p /bedrock/cache cd /bedrock/cache git clone https://github.com/bedrocklinux/bedrocklinux-userland cd bedrocklinux-userland git checkout 0.7beta -q fi current_version="$(awk '{print$3}' Makefile-new mv Makefile-new Makefile fi make SKIPSIGN=true -j $(nproc) BEDROCK_VERSION="${newest_version}" ./bedrock-linux-${newest_version}-$(uname -m).sh --force-update # Maybe clean up here in the future else echo "Bedrock Linux is not installed!" return fi