From 53e3b83a8fc27b2a4b58b2d3ffc14a0ee01dec26 Mon Sep 17 00:00:00 2001 From: bryanmr Date: Thu, 15 Apr 2010 14:44:48 +0000 Subject: [PATCH] Changed to check if the file is readable before trying to source it instead of checking if the system is Linux. Seems more universal and should clean up the problems that were created. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5780 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/sbin/tabedit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-client/sbin/tabedit b/xCAT-client/sbin/tabedit index 362ac1a90..ece0d59cf 100755 --- a/xCAT-client/sbin/tabedit +++ b/xCAT-client/sbin/tabedit @@ -12,7 +12,7 @@ function cexit { } trap cexit 2 15 -if [ `uname` == Linux ]; then +if [ -r /etc/profile.d/xcat.sh ]; then #Source for environment variables source /etc/profile.d/xcat.sh fi