From 97076ab9f849c088e256e0bf6ba9f074d1ec0a7b Mon Sep 17 00:00:00 2001 From: Leander van Dinteren Date: Mon, 18 Nov 2019 14:23:57 +0100 Subject: [PATCH] Split BASE_DIR assignment and export on two lines --- build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 7f7b64b..1b22148 100755 --- a/build.sh +++ b/build.sh @@ -122,7 +122,8 @@ if [ "$(id -u)" != "0" ]; then exit 1 fi -export BASE_DIR=${BASE_DIR:-"$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"} +BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"} +export BASE_DIR if [ -f config ]; then # shellcheck disable=SC1091