fix path problem about sourced scripts
This commit is contained in:
parent
23cde88239
commit
7ab13b3e37
2 changed files with 7 additions and 7 deletions
2
vars.sh
2
vars.sh
|
@ -23,7 +23,7 @@ myHomedir=$(whoami)
|
|||
#
|
||||
# script base dir
|
||||
#
|
||||
scriptDir=$(pwd)
|
||||
scriptDir=$(dirname $0)
|
||||
|
||||
#
|
||||
# logfile
|
||||
|
|
12
yggdrasil.sh
12
yggdrasil.sh
|
@ -10,12 +10,12 @@
|
|||
#
|
||||
# include functions and vars from external files
|
||||
#
|
||||
source ./vars.sh
|
||||
source ./core_functions.sh
|
||||
source ./repo_functions.sh
|
||||
source ./install_functions.sh
|
||||
source ./menus_functions.sh
|
||||
source ./tools_functions.sh
|
||||
source $(dirname $0)/vars.sh
|
||||
source $(dirname $0)/core_functions.sh
|
||||
source $(dirname $0)/repo_functions.sh
|
||||
source $(dirname $0)/install_functions.sh
|
||||
source $(dirname $0)/menus_functions.sh
|
||||
source $(dirname $0)/tools_functions.sh
|
||||
|
||||
#
|
||||
# check if the script is running in root/sudo
|
||||
|
|
Loading…
Reference in a new issue