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
This commit is contained in:
parent
881388dab9
commit
53e3b83a8f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user