Skip to content

Commit cfe3800

Browse files
committed
Fixed Critical Bug: '10' is lexicographically less than '2' causes 10.1.0 builds to skip on Buster OSes.
1 parent e73241a commit cfe3800

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build-scripts/CI/CICTB_32b

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ fi
9393
if [ "$RPIOS_TYPE" = "stretch" ]; then
9494
GCCBASE_VERSION=6.3.0
9595
elif [ "$RPIOS_TYPE" = "buster" ]; then
96-
if [ "$GCC_VERSION" \< "8.3.0" ]; then
96+
if echo $GCC_VERSION "8.3.0" | awk '{exit !( $1 > $2)}'; then
9797
echo "$GCC_VERSION is not supported on buster!"
9898
exit 0
9999
else

build-scripts/CI/CINTB_32b

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ fi
7272

7373

7474
if [ "$RPIOS_TYPE" = "buster" ]; then
75-
if [ "$GCC_VERSION" \< "8.3.0" ]; then
75+
if echo $GCC_VERSION "8.3.0" | awk '{exit !( $1 > $2)}'; then
7676
echo "$GCC_VERSION is not supported on buster!"
7777
exit 0
7878
fi

0 commit comments

Comments
 (0)