From 5c02d3c7da9270fa8a8abd27f0ae65cf37c0da66 Mon Sep 17 00:00:00 2001 From: Francois B Date: Tue, 5 Jun 2018 14:29:41 +0200 Subject: [PATCH] small change to improve import libs --- yggdrasil.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/yggdrasil.sh b/yggdrasil.sh index 68caca9..45e89e3 100755 --- a/yggdrasil.sh +++ b/yggdrasil.sh @@ -11,21 +11,21 @@ # include functions and vars from external files # dir=$(dirname $0) -source /opt/yggdrasil/vars.sh -source /opt/yggdrasil/core_functions.sh -source /opt/yggdrasil/tools_functions.sh +source /opt/yggdrasil/vars.sh || exit 1 +source /opt/yggdrasil/core_functions.sh || exit 1 +source /opt/yggdrasil/tools_functions.sh || exit 1 OS=`lsb_release -d | awk -F':' '{print $2}' | awk -F'\t' '{print $2}'` case $OS in *"Ubuntu 16.04"* | *"Linux Mint 18"*) - source /opt/yggdrasil/repo_functions_ub1604.sh - source /opt/yggdrasil/install_functions_ub1604.sh - source /opt/yggdrasil/menus_functions_ub1604.sh + source /opt/yggdrasil/repo_functions_ub1604.sh || exit 1 + source /opt/yggdrasil/install_functions_ub1604.sh || exit 1 + source /opt/yggdrasil/menus_functions_ub1604.sh || exit 1 ;; *"Ubuntu 18.04"* | *"Linux Mint 19"*) - source /opt/yggdrasil/repo_functions_ub1804.sh - source /opt/yggdrasil/install_functions_ub1804.sh - source /opt/yggdrasil/menus_functions_ub1804.sh + source /opt/yggdrasil/repo_functions_ub1804.sh || exit 1 + source /opt/yggdrasil/install_functions_ub1804.sh || exit 1 + source /opt/yggdrasil/menus_functions_ub1804.sh || exit 1 ;; *) printf "\n"