Add workaround for version bug
parent
bd523d6fca
commit
a293ddf422
@ -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…
Reference in New Issue