Add workaround for version bug
This commit is contained in:
parent
bd523d6fca
commit
a293ddf422
@ -31,7 +31,11 @@ if which brl > /dev/null 2>&1; then
|
||||
fi
|
||||
# Start the build process
|
||||
make clean
|
||||
make SKIPSIGN=true -j $(nproc) VERSION="${newest_version}"
|
||||
if ! grep -q BEDROCK_VERSION Makefile; then # Fix bug with building BusyBox
|
||||
sed 's/VERSION/BEDROCK_VERSION/g' Makefile > 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
|
||||
|
16
test.bash
Normal file
16
test.bash
Normal file
@ -0,0 +1,16 @@
|
||||
. /bedrock/share/common-code
|
||||
export update_url="https://git.cdeck.dev/shark/bedrock-git/raw/branch/master/bedrock-linux-99.99.99-x86_64.sh"
|
||||
if ! echo "${update_url}" | grep -q "^http"; then
|
||||
continue
|
||||
fi
|
||||
arch="$(echo "${update_url}" | awk -F'[-.]' '{print $(NF-1)}')"
|
||||
echo "Arch: ${arch}"
|
||||
#if [ "${arch}" != "${system_arch}" ]; then
|
||||
#fi
|
||||
version="$(echo "${update_url}" | awk -F'-' '{print $(NF-1)}')"
|
||||
echo "Version: ${version}"
|
||||
if ver_cmp_first_newer "${version}" "0.7.6"; then
|
||||
newest_version="${version}"
|
||||
newest_update_url="${update_url}"
|
||||
echo "URL: ${update_url}"
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user