|
|
@ -5,12 +5,11 @@ echo "Fetching latest commits from repository..."
|
|
|
|
if [ -d /bedrock/cache/bedrocklinux-userland ]; then
|
|
|
|
if [ -d /bedrock/cache/bedrocklinux-userland ]; then
|
|
|
|
less_lethal_rm_rf /bedrock/cache/bedrocklinux-userland
|
|
|
|
less_lethal_rm_rf /bedrock/cache/bedrocklinux-userland
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
mkdir -p /bedrock/cache
|
|
|
|
mkdir -p /bedrock/cache
|
|
|
|
cd /bedrock/cache
|
|
|
|
cd /bedrock/cache
|
|
|
|
git clone https://github.com/bedrocklinux/bedrocklinux-userland
|
|
|
|
git clone https://github.com/bedrocklinux/bedrocklinux-userland
|
|
|
|
cd bedrocklinux-userland
|
|
|
|
cd bedrocklinux-userland
|
|
|
|
git checkout 0.7 -q
|
|
|
|
git checkout 0.7 -q
|
|
|
|
fi
|
|
|
|
|
|
|
|
current_version="$(awk '{print$3}' </bedrock/etc/bedrock-release)"
|
|
|
|
current_version="$(awk '{print$3}' </bedrock/etc/bedrock-release)"
|
|
|
|
newest_version=$(awk -F= '/^VERSION=/{print$2}' Makefile | sed 's/[a-z].*$//')-git-$(git log | grep -c "^commit")
|
|
|
|
newest_version=$(awk -F= '/^VERSION=/{print$2}' Makefile | sed 's/[a-z].*$//')-git-$(git log | grep -c "^commit")
|
|
|
|
echo "Current Version: ${current_version}"
|
|
|
|
echo "Current Version: ${current_version}"
|
|
|
|