We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1292438 commit 14d56c4Copy full SHA for 14d56c4
fetch-config.sh
@@ -30,7 +30,9 @@ cp .fetch_config/usr/src/linux-headers-*/.config ./.config
30
echo "reached 1"
31
GCC_VERSION=$(cat .config | sed -n 's/CONFIG_GCC_VERSION=\(.*\)$/\1/p')
32
echo $GCC_VERSION
33
-((G_MAJOR=GCC_VERSION/10000, G_MIDDLE=(GCC_VERSION%10000)/100, G_LAST=GCC_VERSION%100))
+G_MAJOR=$(($GCC_VERSION/10000))
34
+G_MIDDLE=$((($GCC_VERSION%10000)/100))
35
+G_LAST=$(($GCC_VERSION%100))
36
GCC_VERSION=$G_MAJOR.$G_MIDDLE.$G_LAST
37
38
GCC_VERSION_MAJOR=$(echo "${GCC_VERSION}" | sed -En 's/(.*).[0-9]+/\1/p')
0 commit comments