Commit aa2e295f authored by Vitaly Lipatov's avatar Vitaly Lipatov

distr_info: fix alt c10* branch detection

parent 8f5adf19
...@@ -496,10 +496,10 @@ esac ...@@ -496,10 +496,10 @@ esac
case "$DISTRIB_ID" in case "$DISTRIB_ID" in
"ALTLinux") "ALTLinux")
echo "$VERSION" | grep -q "c9.* branch" && DISTRIB_RELEASE="c9" echo "$VERSION" | grep -q "c9\.* branch" && DISTRIB_RELEASE="c9"
echo "$VERSION" | grep -q "c9f1 branch" && DISTRIB_RELEASE="c9f1" if echo "$VERSION" | grep -q -E "c[0-9]+f[1-9] branch" ; then
echo "$VERSION" | grep -q "c9f2 branch" && DISTRIB_RELEASE="c9f2" DISTRIB_RELEASE="$(echo "$VERSION" | sed 's| branch||')"
echo "$VERSION" | grep -q "c9f3 branch" && DISTRIB_RELEASE="c9f3" fi
DISTRIB_CODENAME="$DISTRIB_RELEASE" DISTRIB_CODENAME="$DISTRIB_RELEASE"
# FIXME: fast hack for fallback: 10.1 -> p10 for /etc/os-release # FIXME: fast hack for fallback: 10.1 -> p10 for /etc/os-release
if echo "$DISTRIB_RELEASE" | grep -q "^0" ; then if echo "$DISTRIB_RELEASE" | grep -q "^0" ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment