Read user before global configuration so its values take priority over it.
This commit is contained in:
parent
56f627dc14
commit
00b50d0176
1 changed files with 4 additions and 4 deletions
8
sit
8
sit
|
@ -77,14 +77,14 @@ SIT_USER_CONFIG_FILE=$HOME/.sit
|
||||||
|
|
||||||
source "$SIT_PATH/functions.sh"
|
source "$SIT_PATH/functions.sh"
|
||||||
|
|
||||||
# Reading in global configuration file
|
|
||||||
if [[ -e $SIT_CONFIG_FILE ]] ; then
|
|
||||||
source $SIT_CONFIG_FILE
|
|
||||||
fi
|
|
||||||
# Reading in user configuration file if it exists
|
# Reading in user configuration file if it exists
|
||||||
if [[ -e $SIT_USER_CONFIG_FILE ]] ; then
|
if [[ -e $SIT_USER_CONFIG_FILE ]] ; then
|
||||||
source $SIT_USER_CONFIG_FILE
|
source $SIT_USER_CONFIG_FILE
|
||||||
fi
|
fi
|
||||||
|
# Reading in global configuration file
|
||||||
|
if [[ -e $SIT_CONFIG_FILE ]] ; then
|
||||||
|
source $SIT_CONFIG_FILE
|
||||||
|
fi
|
||||||
|
|
||||||
# identify platform manually if no environment variable was set
|
# identify platform manually if no environment variable was set
|
||||||
PLATFORM=${PLATFORM:=$SITE_PLATFORM_NAME}
|
PLATFORM=${PLATFORM:=$SITE_PLATFORM_NAME}
|
||||||
|
|
Loading…
Reference in a new issue