diff options
Diffstat (limited to 'redhat/build/rpmdist.sh')
-rwxr-xr-x | redhat/build/rpmdist.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/redhat/build/rpmdist.sh b/redhat/build/rpmdist.sh index 16d1468a4..f890bfb2e 100755 --- a/redhat/build/rpmdist.sh +++ b/redhat/build/rpmdist.sh @@ -7,7 +7,7 @@ DIST="" if [ -r /etc/redhat-release ]; then read a b c d e f g < /etc/redhat-release -elif [ -r /etc/SuSE-release ] || [ -r /etc/SUSE-brand ] || grep -qw "ID=opensuse" "/etc/os-release"; then +elif [ -r /etc/SuSE-release ] || [ -r /etc/SUSE-brand ] || grep -q "opensuse" "/etc/os-release"; then a="opensuse" fi @@ -43,6 +43,8 @@ case $a in DIST=".oss$((read l; read a b c; echo ${c//./}) </etc/SuSE-release)" elif [ -r "/etc/SUSE-brand" ]; then DIST=".oss$((read a; read a b c; echo ${c//./}) </etc/SUSE-brand)" + elif grep -q "tumbleweed" "/etc/os-release"; then + DIST=".osstw" else DIST=".oss" fi |