aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 2ebe825..99f8063 100755
--- a/build.sh
+++ b/build.sh
@@ -8,7 +8,7 @@
echo "Starting RISC-V Toolchain build process"
check_version() {
- $1 --version | awk "NR==1 {if (\$NF>$2) {exit 0} exit 1}" || (
+ $1 --version | awk "NR==1 {if (\$NF>=$2) {exit 0} exit 1}" || (
echo $3 requires at least version $2 of $1. Aborting.
exit 1
)