File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 91
91
92
92
# collect dependencies versions from raspberry pi os
93
93
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
95
100
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
97
102
echo " $GCC_VERSION is not supported on buster!"
98
103
exit 0
99
104
else
Original file line number Diff line number Diff line change 72
72
73
73
74
74
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
76
76
echo " $GCC_VERSION is not supported on buster!"
77
77
exit 0
78
78
fi
You can’t perform that action at this time.
0 commit comments