less than, not less than or equal to

master
shark 5 years ago
parent f319b77092
commit 8a353fd0dd

@ -15,7 +15,7 @@ newest_version=$(awk -F= '/^VERSION=/{print$2}' Makefile | sed 's/[a-z].*$//')-g
echo "Current Version: ${current_version}" echo "Current Version: ${current_version}"
echo "Newest Version: ${newest_version}" echo "Newest Version: ${newest_version}"
if ver_cmp_first_newer ${current_version} ${newest_version}; then if ver_cmp_first_newer ${current_version} ${newest_version}; then
if [ ${#current_version} -le ${#newest_version} ]; then if [ ${#current_version} -lt ${#newest_version} ]; then
echo "Building for the first time. Building Bedrock Linux version ${newest_version}" echo "Building for the first time. Building Bedrock Linux version ${newest_version}"
else else
echo "Up to date with the latest commit, nothing to do." echo "Up to date with the latest commit, nothing to do."

Loading…
Cancel
Save