diff options
Diffstat (limited to 'redhat/build/rpmdist.sh')
-rwxr-xr-x | redhat/build/rpmdist.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/redhat/build/rpmdist.sh b/redhat/build/rpmdist.sh index d7be81993..9fdad6b6f 100755 --- a/redhat/build/rpmdist.sh +++ b/redhat/build/rpmdist.sh @@ -47,6 +47,9 @@ case $a in DIST=".oss$((read a; read a b c; echo ${c//./}) </etc/SUSE-brand)" elif grep -q "tumbleweed" "/etc/os-release"; then DIST=".osstw" + elif [ -r "/etc/os-release" ]; then + . "/etc/os-release" + DIST=".oss${VERSION//./}" else DIST=".oss" fi |