From 5ccbf223d63d8af358f28d0ec208db2e8e83143f Mon Sep 17 00:00:00 2001 From: litingt Date: Tue, 22 Apr 2014 03:01:23 -0700 Subject: [PATCH] add strict release check --- buildlocal.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildlocal.sh b/buildlocal.sh index f44ec3762..a53c0f210 100755 --- a/buildlocal.sh +++ b/buildlocal.sh @@ -119,7 +119,8 @@ echo "This is an $OSNAME system" #begin to create repo for redhat platform - if [ "$OSNAME" != "AIX" ]; then + grep -i 'Red' /etc/issue; + if [ "$OSNAME" != "AIX" -a $? -eq 0 ]; then cat >$CURDIR/build/xCAT-core.repo << EOF [xcat-2-core] name=xCAT 2 Core packages