From 00b50d0176740535f11ad730d4e42df7a983263f Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Mon, 23 Sep 2019 14:58:31 +0000 Subject: [PATCH] Read user before global configuration so its values take priority over it. --- sit | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sit b/sit index d0cbde2..e0d2ca9 100755 --- a/sit +++ b/sit @@ -77,14 +77,14 @@ SIT_USER_CONFIG_FILE=$HOME/.sit 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 if [[ -e $SIT_USER_CONFIG_FILE ]] ; then source $SIT_USER_CONFIG_FILE 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 PLATFORM=${PLATFORM:=$SITE_PLATFORM_NAME}