Skip to content

Commit b9d877a

Browse files
committed
Fixed more bugs:
- buster - truncated decimals for accurate comparision - stretch - Removed redundant `8.3.0` builds.
1 parent cfe3800 commit b9d877a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

build-scripts/CI/CICTB_32b

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,14 @@ fi
9191

9292
#collect dependencies versions from raspberry pi os
9393
if [ "$RPIOS_TYPE" = "stretch" ]; then
94-
GCCBASE_VERSION=6.3.0
94+
if [ "$GCC_VERSION" == "8.3.0" ];then
95+
echo "$GCC_VERSION is not supported on stretch!"
96+
exit 0
97+
else
98+
GCCBASE_VERSION=6.3.0
99+
fi
95100
elif [ "$RPIOS_TYPE" = "buster" ]; then
96-
if echo $GCC_VERSION "8.3.0" | awk '{exit !( $1 > $2)}'; then
101+
if echo ${GCC_VERSION%.*} "8.3" | awk '{exit ( $1 >= $2 )}'; then
97102
echo "$GCC_VERSION is not supported on buster!"
98103
exit 0
99104
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 echo $GCC_VERSION "8.3.0" | awk '{exit !( $1 > $2)}'; then
75+
if echo ${GCC_VERSION%.*} "8.3" | awk '{exit ( $1 >= $2 )}'; then
7676
echo "$GCC_VERSION is not supported on buster!"
7777
exit 0
7878
fi

0 commit comments

Comments
 (0)