From f10c1a7bd0cce36e8df63f5fa63e3a431e42add9 Mon Sep 17 00:00:00 2001 From: Francois B Date: Sat, 19 May 2018 06:08:29 +0200 Subject: [PATCH] small bug about source fixed --- yggdrasil.sh | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/yggdrasil.sh b/yggdrasil.sh index c8c6b2a..906886a 100755 --- a/yggdrasil.sh +++ b/yggdrasil.sh @@ -11,21 +11,12 @@ # include functions and vars from external files # dir=$(dirname $0) -if [ ! $dir == "/opt/yggdrasil" ]; then - source /opt/yggdrasil/vars.sh - source /opt/yggdrasil/core_functions.sh - source /opt/yggdrasil/repo_functions.sh - source /opt/yggdrasil/install_functions.sh - source /opt/yggdrasil/menus_functions.sh - source /opt/yggdrasil/tools_functions.sh -else - 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 -fi +source /opt/yggdrasil/vars.sh +source /opt/yggdrasil/core_functions.sh +source /opt/yggdrasil/repo_functions.sh +source /opt/yggdrasil/install_functions.sh +source /opt/yggdrasil/menus_functions.sh +source /opt/yggdrasil/tools_functions.sh # # check if the script is running in root/sudo