Fix order in which config files are read: First global, the user.
This commit is contained in:
parent
8ca07c229e
commit
e4e02bbd21
1 changed files with 7 additions and 5 deletions
12
sit
12
sit
|
@ -63,15 +63,17 @@ while [ "$1" != "" ] ; do
|
|||
shift
|
||||
done
|
||||
|
||||
# Reading in user configuration file if it exists
|
||||
if [[ -e $SIT_USER_CONFIG_FILE ]] ; then
|
||||
source $SIT_USER_CONFIG_FILE
|
||||
fi
|
||||
|
||||
source "$SIT_PATH/functions.sh"
|
||||
|
||||
# Reading in global configuration file
|
||||
if [[ -e $SIT_CONFIG_FILE ]] ; then
|
||||
source $SIT_CONFIG_FILE
|
||||
fi
|
||||
source "$SIT_PATH/functions.sh"
|
||||
# Reading in user configuration file if it exists
|
||||
if [[ -e $SIT_USER_CONFIG_FILE ]] ; then
|
||||
source $SIT_USER_CONFIG_FILE
|
||||
fi
|
||||
|
||||
# identify platform manually if no environment variable was set
|
||||
PLATFORM=${PLATFORM:=$SITE_PLATFORM_NAME}
|
||||
|
|
Loading…
Reference in a new issue