Split BASE_DIR assignment and export on two lines

pull/347/head
Leander van Dinteren 2019-11-18 14:23:57 +01:00
parent 62dfdd85d4
commit 97076ab9f8
1 changed files with 2 additions and 1 deletions

View File

@ -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