check .env

This commit is contained in:
Janik von Rotz committed 2023-10-18 08:17:30 +02:00
1 parent fc9d02a78f
commit 9c7f136b2b
1 file changed
+2 -2
+2 -2
View File
@@ -24,14 +24,14 @@ export ODOO_DEVELOPMENT_CONFIG_DIR="$HOME/.config/odoo-build"
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
if [[ "$(cat .env | sed 's/#.*//g')" ]]; then
if [[ -a ".env" && "$(cat .env | sed 's/#.*//g')" ]]; then
export $(cat .env | sed 's/#.*//g' | xargs)
fi
function set-addons-path() {
# Read addons path list
ADDONS_PATH="$(git config --file .gitmodules --get-regexp path | awk '{ print $2 }' | tr '\n' ',' | sed 's/,*$//g')"
z
# Append env var
ADDONS_PATH="${ADDONS_PATH}${ODOO_ADDONS_PATH}"