From ac9ed7fc467b8d0f658140d781f1b0098c42e09d Mon Sep 17 00:00:00 2001 From: ligc Date: Thu, 15 Apr 2010 08:06:26 +0000 Subject: [PATCH] source /etc/profile.d/xcat.sh should only be called on Linux git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5775 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/sbin/tabedit | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xCAT-client/sbin/tabedit b/xCAT-client/sbin/tabedit index a8d9965f8..362ac1a90 100755 --- a/xCAT-client/sbin/tabedit +++ b/xCAT-client/sbin/tabedit @@ -12,8 +12,10 @@ function cexit { } trap cexit 2 15 -#Source for environment variables -source /etc/profile.d/xcat.sh +if [ `uname` == Linux ]; then + #Source for environment variables + source /etc/profile.d/xcat.sh +fi TABLE=$1 if [ -z "$TABEDITOR" ]; then