Move variables holding sit paths to later place so it is consideredd by debug mode.

This commit is contained in:
Christoph Niethammer 2016-05-03 06:52:25 +00:00
parent 7819d971c2
commit ac692f1a2d

6
sit
View file

@ -6,9 +6,6 @@
#
set -e
SIT_PATH=$(cd $(dirname $PWD/$0); pwd)
SIT_CONFIG_FILE=$SIT_PATH/etc/sit.conf
SIT_USER_CONFIG_FILE=$HOME/.sit
function show_help() {
echo "Usage: $0 [options] [action] <sit package name>"
@ -74,6 +71,9 @@ while [ "$1" != "" ] ; do
shift
done
SIT_PATH=$(cd $(dirname $PWD/$0); pwd)
SIT_CONFIG_FILE=$SIT_PATH/etc/sit.conf
SIT_USER_CONFIG_FILE=$HOME/.sit
source "$SIT_PATH/functions.sh"