fix path problem about sourced scripts

This commit is contained in:
Francois B 2018-03-22 11:52:09 +01:00
parent 23cde88239
commit 7ab13b3e37
2 changed files with 7 additions and 7 deletions

View file

@ -23,7 +23,7 @@ myHomedir=$(whoami)
# #
# script base dir # script base dir
# #
scriptDir=$(pwd) scriptDir=$(dirname $0)
# #
# logfile # logfile

View file

@ -10,12 +10,12 @@
# #
# include functions and vars from external files # include functions and vars from external files
# #
source ./vars.sh source $(dirname $0)/vars.sh
source ./core_functions.sh source $(dirname $0)/core_functions.sh
source ./repo_functions.sh source $(dirname $0)/repo_functions.sh
source ./install_functions.sh source $(dirname $0)/install_functions.sh
source ./menus_functions.sh source $(dirname $0)/menus_functions.sh
source ./tools_functions.sh source $(dirname $0)/tools_functions.sh
# #
# check if the script is running in root/sudo # check if the script is running in root/sudo