From 3e0a99c6b763013febcc337f79ad61764fece579 Mon Sep 17 00:00:00 2001 From: yunielrc87 Date: Sat, 9 Sep 2023 14:13:30 -0400 Subject: [PATCH] perf(vedv): add a validation to do not load home config twice --- README.md.tpl | 2 +- dist/usr/bin/vedv | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md.tpl b/README.md.tpl index 38ed300..95205aa 100644 --- a/README.md.tpl +++ b/README.md.tpl @@ -9,7 +9,7 @@ ## About -A tool for developing applications in a secure and reproducible environment with virtual machines using a Docker-like workflow. +A tool for developing applications in a secure and reproducible environment with virtual machines, using a Docker-like workflow. ### 👉 THIS IS A WORK IN PROGRESS diff --git a/dist/usr/bin/vedv b/dist/usr/bin/vedv index 6a34eb9..a8565d7 100755 --- a/dist/usr/bin/vedv +++ b/dist/usr/bin/vedv @@ -46,7 +46,7 @@ readonly __UA='User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (K # LOAD CONFIG if [[ -f "$__VEDV_CONFIG" ]]; then source "$__VEDV_CONFIG"; fi if [[ -f ~/.vedv.env ]]; then source ~/.vedv.env; fi -if [[ -f .vedv.env ]]; then source .vedv.env; fi +if [[ "$PWD" != "$HOME" && -f .vedv.env ]]; then source .vedv.env; fi # ENVIRONMENT # scheme: VAR="${ENVIRONMENT_VAR:-"${CONFIG_VAR:-default}"}"