mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-20 05:00:34 +00:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user