From 32d4927ad4f0cb8b4a069d51f7eefdfe37a6d87d Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Wed, 24 Jun 2020 09:19:51 +0200 Subject: [PATCH] Optimized path --- scripts/base.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/base.sh b/scripts/base.sh index 69acf88..eac1a79 100644 --- a/scripts/base.sh +++ b/scripts/base.sh @@ -7,8 +7,7 @@ # shellcheck disable=SC2015 #Deactivate bool hint # shellcheck disable=SC2005 #Remove useless echo hint # shellcheck disable=SC2010 #Deactivate ls | grep hint - -REPOSITORY_PATH=$(readlink -f "$(dirname "$(readlink -f "${0}")")/../../") # Propably this can be optimized +REPOSITORY_PATH="$(readlink -f "${0}" | sed -e 's/\/scripts\/.*//g')" CONFIGURATION_PATH="$REPOSITORY_PATH""/configuration/" PACKAGE_PATH="$CONFIGURATION_PATH""packages/" TEMPLATE_PATH="$CONFIGURATION_PATH""templates/";