Skip to content

Commit 14d56c4

Browse files
Build4Last30DaysUpdate
1 parent 1292438 commit 14d56c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fetch-config.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ cp .fetch_config/usr/src/linux-headers-*/.config ./.config
3030
echo "reached 1"
3131
GCC_VERSION=$(cat .config | sed -n 's/CONFIG_GCC_VERSION=\(.*\)$/\1/p')
3232
echo $GCC_VERSION
33-
((G_MAJOR=GCC_VERSION/10000, G_MIDDLE=(GCC_VERSION%10000)/100, G_LAST=GCC_VERSION%100))
33+
G_MAJOR=$(($GCC_VERSION/10000))
34+
G_MIDDLE=$((($GCC_VERSION%10000)/100))
35+
G_LAST=$(($GCC_VERSION%100))
3436
GCC_VERSION=$G_MAJOR.$G_MIDDLE.$G_LAST
3537
echo $GCC_VERSION
3638
GCC_VERSION_MAJOR=$(echo "${GCC_VERSION}" | sed -En 's/(.*).[0-9]+/\1/p')

0 commit comments

Comments
 (0)