From: František Dvořák Date: Mon, 15 Jun 2015 16:50:39 +0000 (+0200) Subject: Workaround RedHat bug in /etc/issue file. X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=7dcc4f67a4dd93e41d5ab390d4e38428ee1a5df1;p=mock.git Workaround RedHat bug in /etc/issue file. --- diff --git a/mock.sh b/mock.sh index be701d2..3356ccb 100755 --- a/mock.sh +++ b/mock.sh @@ -38,7 +38,11 @@ if test "x$1" = "x-r"; then shift fi -OS=`cat /etc/issue | head -n 1` +if test -f /etc/redhat-release; then + OS=`cat /etc/redhat-release | head -n 1` +else + OS=`cat /etc/issue | head -n 1` +fi ARCH=`uname -i` was_build=