#!/bedrock/libexec/busybox sh . /bedrock/share/common-code echo "Fetching latest commits from repository..." if [ -d /bedrock/cache/bedrocklinux-userland ]; then less_lethal_rm_rf /bedrock/cache/bedrocklinux-userland fi mkdir -p /bedrock/cache cd /bedrock/cache git clone https://github.com/bedrocklinux/bedrocklinux-userland cd bedrocklinux-userland git checkout 0.7 -q fi current_version="$(awk '{print$3}' Makefile-new mv Makefile-new Makefile fi make SKIPSIGN=true -j $(nproc) BEDROCK_VERSION="${newest_version}" /bedrock/libexec/busybox sh "bedrock-linux-${newest_version}-$(uname -m).sh" --force-update # Maybe clean up here in the future exit_success